diff options
| author | Jeff Carr <[email protected]> | 2025-04-20 19:40:50 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-04-20 19:40:50 -0500 |
| commit | 3cd1f64d15465160770794187ca632953fdd4c86 (patch) | |
| tree | 3b4184706f311f97e2ac87361a623378d952e9d3 /argv.go | |
| parent | 69ee3b95d0a2f5a3079e512a9f3315026912fcde (diff) | |
stub in droplet statusv0.2.52
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 29 |
1 files changed, 20 insertions, 9 deletions
@@ -11,15 +11,16 @@ import "go.wit.com/log" var argv args type args struct { - List *ListCmd `arg:"subcommand:list" help:"list things"` - Config string `arg:"env:VIRTIGO_HOME" help:"defaults to ~/.config/virtigo/"` - Server string `arg:"env:VIRTIGO_SERVER" help:"what virtigo cluster to connect to"` - Verbose bool `arg:"--verbose" help:"talk more"` - Port int `arg:"--port" default:"8080" help:"allow droplet events via http"` - Xml []string `arg:"--libvirt" help:"import qemu xml files: --libvirt /etc/libvirt/qemu/*.xml"` - Admin bool `arg:"--admin" help:"enter admin mode"` - Bash bool `arg:"--bash" help:"generate bash completion"` - BashAuto []string `arg:"--auto-complete" help:"todo: move this to go-arg"` + List *ListCmd `arg:"subcommand:list" help:"list things"` + Droplet *DropletCmd `arg:"subcommand:droplet" help:"send events to a droplet"` + Config string `arg:"env:VIRTIGO_HOME" help:"defaults to ~/.config/virtigo/"` + Server string `arg:"env:VIRTIGO_SERVER" help:"what virtigo cluster to connect to"` + Verbose bool `arg:"--verbose" help:"talk more"` + Port int `arg:"--port" default:"8080" help:"allow droplet events via http"` + Xml []string `arg:"--libvirt" help:"import qemu xml files: --libvirt /etc/libvirt/qemu/*.xml"` + Admin bool `arg:"--admin" help:"enter admin mode"` + Bash bool `arg:"--bash" help:"generate bash completion"` + BashAuto []string `arg:"--auto-complete" help:"todo: move this to go-arg"` } type EmptyCmd struct { @@ -33,6 +34,16 @@ type ListCmd struct { On bool `arg:"--on" help:"only show things that are on"` } +type DropletCmd struct { + Start *EmptyCmd `arg:"subcommand:start" help:"start droplet"` + Stop *EmptyCmd `arg:"subcommand:stop" help:"stop droplet"` + Show *EmptyCmd `arg:"subcommand:show" help:"show droplet"` + Console *EmptyCmd `arg:"subcommand:console" help:"open serial console"` + VNC *EmptyCmd `arg:"subcommand:vnc" help:"open VNC console"` + Spice *EmptyCmd `arg:"subcommand:spice" help:"open spiceconsole"` + Name string `arg:"--name" help:"what droplet to start"` +} + func (a args) Description() string { return ` virtigo: control your cluster |
