diff options
| author | Jeff Carr <[email protected]> | 2025-10-13 12:43:51 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-13 12:43:51 -0500 |
| commit | 686c7f0bd6a69580e2c1503c89cc21c1881d368a (patch) | |
| tree | f5e10b981fb0030a085dc913eeb6ad35ffd09416 | |
| parent | 1ac9426ab598ea45bb3f86c56e1dad7462008fec (diff) | |
new funcs for guiv0.2.86
| -rw-r--r-- | argv.go | 6 | ||||
| -rw-r--r-- | main.go | 1 | ||||
| -rw-r--r-- | structs.go | 3 |
3 files changed, 8 insertions, 2 deletions
@@ -3,6 +3,7 @@ package main import ( "os" + "go.wit.com/lib/fhelp" "go.wit.com/lib/gui/prep" "go.wit.com/log" ) @@ -92,6 +93,11 @@ func (args) Buildtime() (string, string) { return BUILDTIME, VERSION } +func (args) ArgvGui() error { + me.myGui = fhelp.Gui() // adds the GUI package argv support + return nil +} + func (a args) DoAutoComplete(pb *prep.Auto) { if pb.Cmd == "" { pb.Autocomplete3([]string{"--version", "list", "droplet"}) @@ -25,7 +25,6 @@ var resources embed.FS func main() { me = new(virtigoT) - me.myGui = prep.Gui() // prepares the GUI package for go-args me.auto = prep.Bash3(&argv) // add support for bash autocomplete with go-arg if os.Getenv("VIRTIGO_HOME") == "" { @@ -5,6 +5,7 @@ import ( "time" "go.wit.com/gui" + "go.wit.com/lib/fhelp" "go.wit.com/lib/gadgets" "go.wit.com/lib/gui/prep" "go.wit.com/lib/protobuf/virtpb" @@ -25,7 +26,7 @@ func (b *virtigoT) Enable() { // this app's variables type virtigoT struct { auto *prep.Auto // more experiments for bash handling - myGui *prep.GuiPrep // the gui toolkit handle + myGui *fhelp.GuiPrep // the gui toolkit handle e *virtpb.Events // virt protobuf events hmap map[*virtpb.Hypervisor]*HyperT // map to the local struct names []string // ? |
