Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-30 03:15:56 -05:00
parent 73b81913fa
commit 910d3070f3
1 changed files with 20 additions and 7 deletions

27
argv.go
View File

@ -11,21 +11,34 @@ import "go.wit.com/log"
var argv args
type args struct {
Filename string `arg:"--filename" help:"start a vm based off the qcow2 filename"`
Start []string `arg:"--start" help:"droplets to start"`
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"`
Port int `arg:"--port" default:"8080" help:"allow droplet events via http"`
Hosts []string `arg:"--hosts" help:"hosts to connect to"`
}
Port int `arg:"--port" default:"8080" help:"allow droplet events via http"`
Memory int `arg:"--memory" help:"set the memory in MB"`
Cpus int `arg:"--cpus" help:"set the cpus"`
// 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"`
DumpUptime bool `arg:"--dump-uptime" help:"show the state of the cluster"`
DumpDroplets bool `arg:"--dump-droplets" help:"show the running droplets"`
DumpDropletsFull bool `arg:"--dump-droplets-full" help:"show all the known droplets"`
DumpHypervisors bool `arg:"--dump-hypervisors" help:"show the hypervisors"`
}
func (a args) Description() string {
return `
virtigoctl command line configure and control for virtigo
virtigoctl command line configure and control for virtigo
This will start three already defined servers:
virtigoctl --start www.wit.com ftp.wit.com wiki.wit.com
This will make a new vm called "foo.wit.com" with the default
virtigo values for memory, cpus, network settings, spice, etc.
virtigoctl --filename /home/nfs/foo.wit.com.qcow2
`
}