summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-18 15:50:06 -0600
committerJeff Carr <[email protected]>2025-01-18 15:50:06 -0600
commitcbbd43f7b59cee14ed3c83d1da33a04cf8e73bbc (patch)
tree173f1d0d15b66962f16d3e3366f685da0269cda4 /argv.go
parent4444e942ea0c179f94ef4baa8d8dc268f807a8f4 (diff)
start a 'clean' argv option
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/argv.go b/argv.go
index 5c7c345..0bd593e 100644
--- a/argv.go
+++ b/argv.go
@@ -22,6 +22,7 @@ type args struct {
Rescan *EmptyCmd `arg:"subcommand:rescan" help:"recreate the git protobuf repos.pb file"`
Delete *EmptyCmd `arg:"subcommand:delete" help:"untrack a repo"`
Commit *EmptyCmd `arg:"subcommand:commit" help:"smart 'git commit' (errors out if on wrong branch)"`
+ Clean *CleanCmd `arg:"subcommand:clean" help:"clean out all local branches (safely)"`
Examine *ExamineCmd `arg:"subcommand:examine" help:"examine branches"`
URL string `arg:"--connect" help:"gowebd url"`
All bool `arg:"--all" help:"git commit --all"`
@@ -42,6 +43,10 @@ type ExamineCmd struct {
Submit string `arg:"--submit" help:"name of patchset"`
}
+type CleanCmd struct {
+ Force *EmptyCmd `arg:"subcommand:force" help:"dangerously delete things that are not pushed upstream"`
+}
+
type PatchCmd struct {
List *EmptyCmd `arg:"subcommand:list" help:"list available patches"`
Show *EmptyCmd `arg:"subcommand:show" help:"show a specific patch"`