diff options
| author | Jeff Carr <[email protected]> | 2024-10-11 13:55:13 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-11 13:55:13 -0500 |
| commit | b689239cd3b1471f663f49608fcc8a6feb0a3c8a (patch) | |
| tree | f608fee8601caa829c32da718590c6003d913d2d /argv.go | |
initial something. doesn't do anything yet.v0.0.1
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 +} |
