summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-12 14:30:26 -0500
committerJeff Carr <[email protected]>2025-09-12 14:30:26 -0500
commit7c520aae88c78c9b12610e5cbd7a968844b2ca6a (patch)
treeb54c3805b942faf8e0857bb7613f19dcd43c97a0 /argv.go
parent96a8f661380ca7a8314bcc05f761b73b089fa8b4 (diff)
add tag handling
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/argv.go b/argv.go
index 7285464..8dc5ae5 100644
--- a/argv.go
+++ b/argv.go
@@ -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)