diff options
| author | Jeff Carr <[email protected]> | 2025-10-19 06:22:22 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-19 06:22:22 -0500 |
| commit | 4cb0a4e85cf25244e1e7bbd8d9ef8135582c7ee9 (patch) | |
| tree | 6c3aa54ca9e1df83ddbee3ebc341185eedaec274 /main.go | |
| parent | e342a3bb0a944899a8514055a861da084489e1ab (diff) | |
new argvv0.1.59
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -21,24 +21,17 @@ import ( "time" "github.com/digitalocean/go-qemu/hypervisor" - "go.wit.com/dev/alexflint/arg" + "go.wit.com/lib/protobuf/argvpb" "go.wit.com/log" ) -var Version string - //go:embed resources/* var resources embed.FS func main() { - var pp *arg.Parser - pp = arg.MustParse(&argv) - - if pp == nil { - pp.WriteHelp(os.Stdout) - os.Exit(0) - } me = new(Virtigod) + me.argv = argvpb.Autocomplete(&argv) // adds shell auto complete to go-args + me.Hostname, _ = os.Hostname() log.DaemonMode(true) |
