summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go19
1 files changed, 14 insertions, 5 deletions
diff --git a/argv.go b/argv.go
index 4b06219..739c4b8 100644
--- a/argv.go
+++ b/argv.go
@@ -11,14 +11,14 @@ import "go.wit.com/log"
var argv args
type args struct {
- Xml []string `arg:"--add-xml" help:"add libvirt xml files"`
- CfgDir string `arg:"--dir" help:"defaults to ~/.config/virtigo/"`
- Hosts []string `arg:"--hosts" help:"hosts to connect to"`
+ Xml []string `arg:"--libvirt" help:"add current xml files: --libvirt /etc/libvirt/qemu/*.xml"`
+ Save bool `arg:"--save" default:"false" help:"save config protobuf after libvirt file import"`
+ Config string `arg:"--config" help:"defaults to ~/.config/virtigo/"`
Port int `arg:"--port" default:"8080" help:"allow droplet events via http"`
- Uptime bool `arg:"--uptime" default:"true" help:"allow uptime checks for things like Kuma"`
Daemon bool `arg:"--daemon" help:"run in daemon mode"`
- Save bool `arg:"--save" default:"false" help:"save xml changes to the protobuf values"`
}
+// Uptime bool `arg:"--uptime" default:"true" help:"allow uptime checks for things like Kuma"`
+// Hosts []string `arg:"--hosts" help:"hosts to connect to"`
func (a args) Description() string {
return `
@@ -27,6 +27,15 @@ virtigo will help control your cluster of hypervisiors
This maintains a master list of all your vm's (aka 'droplets')
in your homelab cloud. You can import libvirt xml files.
This app talks to your hypervisors via the virtigod daemon.
+
+Runs a http server so you can control your virtual machines with things like:
+start virtual machines with:
+
+ curl http://virtigo.wit.com/start?www.wit.com
+
+Import your existing libvirt xml files with:
+
+ virtigo --libvirt ~/mymachines/*.xml --save
`
}