summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-31 13:37:00 -0500
committerJeff Carr <[email protected]>2024-10-31 13:37:00 -0500
commit3c520003edb286deec57ce62c447373912787829 (patch)
tree29b819f09a0147f39eba997dab0979698cf68635 /argv.go
parent913b18737b9cb25636eea44355ddc680ff1c45c0 (diff)
compiles again
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go17
1 files changed, 9 insertions, 8 deletions
diff --git a/argv.go b/argv.go
index 8e966cf..218b4ca 100644
--- a/argv.go
+++ b/argv.go
@@ -11,15 +11,16 @@ import "go.wit.com/log"
var argv args
type args struct {
- Xml []string `arg:"--libvirt" help:"import qemu xml files: --libvirt /etc/libvirt/qemu/*.xml"`
- IgnoreCpu bool `arg:"--xml-ignore-cpu" default:"true" help:"ignore non-standard libvirt xml cpus"`
- IgnoreBr bool `arg:"--xml-ignore-net" default:"true" help:"ignore network bridge name changes"`
- IgnDisk bool `arg:"--xml-ignore-disk" default:"false" help:"ignore duplicate disk names"`
- Config string `arg:"env:VIRTIGO_HOME" help:"defaults to ~/.config/virtigo/"`
- Port int `arg:"--port" default:"8080" help:"allow droplet events via http"`
- Daemon bool `arg:"--daemon" help:"run in daemon mode"`
+ Xml []string `arg:"--libvirt" help:"import qemu xml files: --libvirt /etc/libvirt/qemu/*.xml"`
+ Config string `arg:"env:VIRTIGO_HOME" help:"defaults to ~/.config/virtigo/"`
+ Port int `arg:"--port" default:"8080" help:"allow droplet events via http"`
}
+// Daemon bool `arg:"--daemon" help:"run in daemon mode"`
+// IgnoreCpu bool `arg:"--xml-ignore-cpu" default:"true" help:"ignore non-standard libvirt xml cpus"`
+// IgnoreBr bool `arg:"--xml-ignore-net" default:"true" help:"ignore network bridge name changes"`
+// IgnDisk bool `arg:"--xml-ignore-disk" default:"false" help:"ignore duplicate disk names"`
+
// Save bool `arg:"--save" default:"false" help:"save protobuf config after import"`
// Start string `arg:"--start" help:"start a droplet"`
// Uptime bool `arg:"--uptime" default:"true" help:"allow uptime checks for things like Kuma"`
@@ -35,7 +36,7 @@ This app talks to your hypervisors via the virtigod daemon.
Import your existing libvirt xml files with:
- virtigo --libvirt /etc/libvirt/qemu/*.xml --save
+ virtigo --libvirt /etc/libvirt/qemu/*.xml
This runs a http server so you can control your virtual machines.
For example to start a vm called 'www.wit.com' your cluster 'foo.bar.com':