summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-24 10:29:14 -0500
committerJeff Carr <[email protected]>2025-10-24 10:29:14 -0500
commit08f363db15952c41a433fa263940b27abcfb5615 (patch)
tree73f1ff41014f89ecd1983fedad12580bdbd6d6c2 /main.go
parentd858946501f58a932521b05534c0a1717476adba (diff)
still runsv0.1.49
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index c8d5e80..e972da0 100644
--- a/main.go
+++ b/main.go
@@ -21,14 +21,14 @@ func main() {
me.argv = argvpb.Autocomplete(&argv) // adds shell auto complete to go-args
me.homedir, _ = os.UserHomeDir() // store shortcut here todo: add better logic
- if me.argv.Cmd == "" {
+ if me.argv.GetCmd() == "" {
// user didn't enter a sub command
// doDefaultBehavior()
me.argv.GoodExit("do what?")
}
pwd, _ := os.Getwd()
- setTitle(log.Sprintf("wit %s %s", me.argv.Cmd, pwd))
+ setTitle(log.Sprintf("wit %s %s", me.argv.GetCmd(), pwd))
// Standard subcommand handling starts here
var s string