From 875acb0f8be063646d1caa83d0cb5896e696e30c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 12 Oct 2025 01:47:28 -0500 Subject: notes. change the func name --- main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'main.go') 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 -- cgit v1.2.3