summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-25 21:21:43 -0500
committerJeff Carr <[email protected]>2025-10-25 21:21:43 -0500
commit077bc5a5be2c6144704347a15c5f5909a60dd310 (patch)
tree7c20a059f2755b98307dfdc41ab3d551ded646ff
parent36704585078a84db0a184f38456ec80cc3f6fcb1 (diff)
something. notsure
-rw-r--r--argv.custom.go4
-rw-r--r--doVerify.go3
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 {