summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/argv.go b/argv.go
index ca88012..da2e4ba 100644
--- a/argv.go
+++ b/argv.go
@@ -12,7 +12,9 @@ import (
*/
type args struct {
- Commit *EmptyCmd `arg:"subcommand:commit" help:"'git commit' but errors out if on wrong branch"`
+ Commit *EmptyCmd `arg:"subcommand:commit" help:"'git commit' but errors out if on wrong branch"`
+ Show *EmptyCmd `arg:"subcommand:show" help:"show what would be done"`
+ Gui *EmptyCmd `arg:"subcommand:gui" help:"open the gui"`
Auto bool `arg:"--auto" help:"automatically attempt to make the .deb"`
Ldflags []string `arg:"--ldflags" help:"flags to pass to go build"`
Forge string `arg:"--forge" help:"use a git repo from forge"`
@@ -21,8 +23,8 @@ type args struct {
KeepFiles bool `arg:"--keep-files" help:"keep the build files/"`
Force bool `arg:"--force" default:"false" help:"force overwrite an existing .deb file"`
Verbose bool `arg:"--verbose" help:"show more things"`
- Bash bool `arg:"--bash" help:"generate bash completion"`
- BashAuto []string `arg:"--auto-complete" help:"todo: move this to go-arg"`
+ Bash bool `arg:"--bash" help:"generate bash completion"`
+ BashAuto []string `arg:"--auto-complete" help:"todo: move this to go-arg"`
}
func (args) Version() string {
@@ -54,7 +56,7 @@ func (a args) DoAutoComplete(argv []string) {
default:
if argv[0] == ARGNAME {
// list the subcommands here
- fmt.Println("arch build")
+ fmt.Println("arch build gui show")
}
}
os.Exit(0)