summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-11 13:55:13 -0500
committerJeff Carr <[email protected]>2024-10-11 13:55:13 -0500
commitb689239cd3b1471f663f49608fcc8a6feb0a3c8a (patch)
treef608fee8601caa829c32da718590c6003d913d2d /argv.go
initial something. doesn't do anything yet.v0.0.1
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/argv.go b/argv.go
new file mode 100644
index 0000000..101caa1
--- /dev/null
+++ b/argv.go
@@ -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
+}