summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go17
1 files changed, 5 insertions, 12 deletions
diff --git a/argv.go b/argv.go
index 03e8f6f..7285464 100644
--- a/argv.go
+++ b/argv.go
@@ -52,13 +52,8 @@ type CommitCmd struct {
type testCmd string
type CleanCmd struct {
- Delete *EmptyCmd `arg:"subcommand:delete" help:"rescan repo"`
- Devel *CleanDevelCmd `arg:"subcommand:devel" help:"clean and verify the devel branches"`
- Force *EmptyCmd `arg:"subcommand:force" help:"do destructive stuff"`
- GitReset *EmptyCmd `arg:"subcommand:git-reset" help:"git reset --hard"`
- Pub *EmptyCmd `arg:"subcommand:pub" help:"clean target version numbers"`
- User *EmptyCmd `arg:"subcommand:user" help:"clean the user branches"`
- Repo string `arg:"--repo" help:"which repo to look at"`
+ Verify *EmptyCmd `arg:"subcommand:verify" help:"rescan repo"`
+ Repo string `arg:"--repo" help:"which repo to look at"`
}
type CleanDevelCmd struct {
@@ -150,8 +145,6 @@ forge -- a tool to manage lots of git repos. forge includes a GUI and TUI.
//
func DoAutoComplete(argv []string) {
- // fmt.Fprintln(os.Stderr, "") // these are for debugging
- // fmt.Fprintln(os.Stderr, "in autocomplete:", argv) // these are for debugging
switch argv[0] {
case "checkout":
fmt.Println("devel master user")
@@ -160,11 +153,11 @@ func DoAutoComplete(argv []string) {
// me.pp.WriteUsageForSubcommand(os.Stderr, me.pp.SubcommandNames()...)
// me.pp.WriteHelpForSubcommand(os.Stderr, me.pp.SubcommandNames()...)
// me.pp.WriteHelpForSubcommand(os.Stderr, "clean")
- fmt.Println("--force")
+ fmt.Println("--force verify --repo")
case "commit":
fmt.Println("--all")
case "config":
- fmt.Println("add fix list debug")
+ fmt.Println("add fix list")
case "dirty":
fmt.Println("")
case "gui":
@@ -196,7 +189,7 @@ func DoAutoComplete(argv []string) {
default:
if argv[0] == ARGNAME {
// list the subcommands here
- fmt.Println("help list checkout clean commit dirty debug fetch gui normal merge patch pull")
+ fmt.Println("help list checkout clean commit dirty fetch gui normal merge patch pull")
}
}
os.Exit(0)