summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/argv.go b/argv.go
new file mode 100644
index 0000000..308132e
--- /dev/null
+++ b/argv.go
@@ -0,0 +1,21 @@
+// Copyright 2017-2025 WIT.COM Inc. All rights reserved.
+// Use of this source code is governed by the GPL 3.0
+
+package main
+
+var argv args
+
+type args struct {
+ Gui *EmptyCmd `arg:"subcommand:gui" help:"open the gui"`
+ List *EmptyCmd `arg:"subcommand:list" help:"list the machines in your zoo"`
+ Upgrade *EmptyCmd `arg:"subcommand:upgrade" help:"upgrade the machines"`
+ Verbose bool `arg:"--verbose" default:"false" help:"talk more"`
+ Daemon bool `arg:"--daemon" default:"false" help:"run in daemon mode"`
+ Port int `arg:"--port" default:"8080" help:"port to run on"`
+ NoPort bool `arg:"--no-port" help:"don't open socket"`
+ Bash bool `arg:"--bash" help:"generate bash completion"`
+ BashAuto []string `arg:"--auto-complete" help:"todo: move this to go-arg"`
+}
+
+type EmptyCmd struct {
+}