blob: 101caa1e97420a445d13202e286d029804091bd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
}
|