diff options
| -rw-r--r-- | argv.custom.go | 4 | ||||
| -rw-r--r-- | doVerify.go | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/argv.custom.go b/argv.custom.go index 0184c92..2b4f1f2 100644 --- a/argv.custom.go +++ b/argv.custom.go @@ -37,6 +37,7 @@ forge -- a tool to manage lots of git repos. forge includes a GUI and TUI. ` } +/* func ifBlank(arg string) bool { if arg == "''" { // if empty, the user has not typed something @@ -44,6 +45,7 @@ func ifBlank(arg string) bool { } return false } +*/ func (args) Appname() string { return APPNAME @@ -88,10 +90,12 @@ func (a args) SendCompletionStrings(pb *argvpb.Argv) { if pb.IsMatch("mode.config") { matches := []string{"mine", "favorites"} fmt.Fprintf(argvpb.Stdout, strings.Join(matches, " ")) + return } if pb.IsMatch("mode") { matches := []string{"once", "many", "mine", "favorites"} fmt.Fprintf(argvpb.Stdout, strings.Join(matches, " ")) + return } if pb.GetCmd() == "" { // these are base autocomplete strings diff --git a/doVerify.go b/doVerify.go index 97d7b3f..d32513e 100644 --- a/doVerify.go +++ b/doVerify.go @@ -8,7 +8,6 @@ import ( "path/filepath" "go.wit.com/lib/env" - "go.wit.com/lib/protobuf/argvpb" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) @@ -70,7 +69,7 @@ func doVerifyNamespace() (string, error) { err = errors.New(log.Sprintf("%d namespaces were invalid", counter)) } - if argvpb.DryRun() { + if env.True("DryRun") { return s, err } if counter != 0 { |
