From cbbd43f7b59cee14ed3c83d1da33a04cf8e73bbc Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 18 Jan 2025 15:50:06 -0600 Subject: start a 'clean' argv option --- argv.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'argv.go') 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"` -- cgit v1.2.3