summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-12 00:17:26 -0500
committerJeff Carr <[email protected]>2024-10-12 00:17:26 -0500
commit5fcb83a1a2387e155ea314af865614b9bf237fce (patch)
treef0e16614c3aa9d7852d3a5ac6903e09ccaca119e /argv.go
parentb689239cd3b1471f663f49608fcc8a6feb0a3c8a (diff)
the beginning of something
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go14
1 files changed, 6 insertions, 8 deletions
diff --git a/argv.go b/argv.go
index 101caa1..7221523 100644
--- a/argv.go
+++ b/argv.go
@@ -6,21 +6,19 @@ package main
this enables command line options from other packages like 'gui' and 'log'
*/
+var argv args
+
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"`
+ Hosts []string `arg:"--hosts" help:"hosts to connect to"`
+ Uptime bool `arg:"--uptime" default:"true" help:"allow uptime checks for things like Kuma"`
+ Port int `arg:"--port" default:"8080" help:"specify a different default port"`
}
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
+go install go.wit.com/apps/virtigo@latest
`
}