summaryrefslogtreecommitdiff
path: root/argv.go
blob: 308132ef586f9ffe53090768a87e72d9e102baa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2017-2025 WIT.COM Inc. All rights reserved.
// Use of this source code is governed by the GPL 3.0

package main

var argv args

type args struct {
	Gui      *EmptyCmd `arg:"subcommand:gui"                       help:"open the gui"`
	List     *EmptyCmd `arg:"subcommand:list"                      help:"list the machines in your zoo"`
	Upgrade  *EmptyCmd `arg:"subcommand:upgrade"                   help:"upgrade the machines"`
	Verbose  bool      `arg:"--verbose"          default:"false"  help:"talk more"`
	Daemon   bool      `arg:"--daemon"           default:"false"  help:"run in daemon mode"`
	Port     int       `arg:"--port"             default:"8080"   help:"port to run on"`
	NoPort   bool      `arg:"--no-port"                              help:"don't open socket"`
	Bash     bool      `arg:"--bash"                               help:"generate bash completion"`
	BashAuto []string  `arg:"--auto-complete"                      help:"todo: move this to go-arg"`
}

type EmptyCmd struct {
}