diff options
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -0,0 +1,29 @@ +package main + +/* + this parses the command line arguements + + this enables command line options from other packages like 'gui' and 'log' +*/ + +type args struct { + DryRun bool `arg:"--dry-run" help:"show what would be run"` + Uptime bool `arg:"--uptime" help:"enable port 8080 for use with uptime checks like Kuma"` + Hosts []string `arg:"--hosts" help:"hosts to connect to"` +} + +func (a args) Description() string { + return ` +virtigo will help control your cluster of hypervisiors + +Install: + apt install virtigo + +Sources: + go-clone --recursive --no-work -go-src go.wit.com/apps/virtigo +` +} + +func (args) Version() string { + return "virtigo " + Version +} |
