summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-12 01:47:28 -0500
committerJeff Carr <[email protected]>2025-10-12 01:47:28 -0500
commit875acb0f8be063646d1caa83d0cb5896e696e30c (patch)
treee71c82aaab04e3d699b6048247c2d7dff7aae1bc
parent35482563e5fc3491254120dd2f4faa778bfadfff (diff)
notes. change the func name
-rw-r--r--main.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.go b/main.go
index 8fd3602..c6d2b3c 100644
--- a/main.go
+++ b/main.go
@@ -27,9 +27,11 @@ var ARGNAME string = "forge"
func main() {
me = new(mainType)
- // the current os.Argv processing with go-args
- me.myGui = prep.Gui() // adds the GUI package args support
- me.sh = prep.Bash(&argv) // adds shell auto complete to go-args
+ // autocomplete must run before everythingi
+ // any writes before this to STDOUT or STDERR
+ // will cause problems for the user at the command line
+ me.myGui = prep.Gui() // adds the GUI package argv support
+ me.sh = prep.Autocomplete(&argv) // adds shell auto complete to go-args
// the current forge init process
me.forge = forgepb.Init() // init forge.pb