From 8edefa6dadd1f4c3c43e145cc0431654720e2953 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 9 Sep 2025 08:40:49 -0500 Subject: fix something --- argv.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'argv.go') 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) -- cgit v1.2.3