diff options
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -28,6 +28,7 @@ type args struct { Normal *NormalCmd `arg:"subcommand:normal" help:"set every repo to the default state for software development"` Patch *PatchCmd `arg:"subcommand:patch" help:"make patchsets"` Pull *PullCmd `arg:"subcommand:pull" help:"run 'git pull'"` + Tag *TagCmd `arg:"subcommand:tag" help:"manage git tags"` URL string `arg:"--connect" help:"forge url"` All bool `arg:"--all" help:"git commit --all"` Build string `arg:"--build" help:"build a repo"` @@ -79,6 +80,12 @@ type PullCmd struct { Patches *EmptyCmd `arg:"subcommand:patches" help:"only check repos with patches"` } +type TagCmd struct { + List *EmptyCmd `arg:"subcommand:list" help:"list the tags"` + Clean *EmptyCmd `arg:"subcommand:clean" help:"clean out old and duplicate tags"` + Delete string `arg:"--delete" help:"delete a tag"` +} + type ConfigAddCmd struct { Path string `arg:"--path" help:"absolute path of the git repo"` GoPath string `arg:"--gopath" help:"GO path of the git repo"` @@ -186,10 +193,12 @@ func DoAutoComplete(argv []string) { fmt.Println("") case "verify": fmt.Println("user devel master") + case "tag": + fmt.Println("list --delete clean") default: if argv[0] == ARGNAME { // list the subcommands here - fmt.Println("help list checkout clean commit dirty fetch gui normal merge patch pull") + fmt.Println("help list checkout clean commit dirty fetch gui normal merge patch pull tag") } } os.Exit(0) |
