summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go23
1 files changed, 12 insertions, 11 deletions
diff --git a/argv.go b/argv.go
index f9b7862..7782639 100644
--- a/argv.go
+++ b/argv.go
@@ -11,17 +11,18 @@ import "go.wit.com/log"
var argv args
type args struct {
- 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"`
- Daemon bool `arg:"--daemon" help:"run as a daemon"`
- 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"`
+ Localhost bool `arg:"--localhost" help:"use the local libvirt"`
+ Daemon bool `arg:"--daemon" help:"run as a daemon"`
+ 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 {