virtigo/argv.go

30 lines
670 B
Go
Raw Normal View History

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
}