diff options
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -11,14 +11,14 @@ import ( func Init(dest any, APPNAME string, anyString string, VERSION string) { me = new(AutoType) - me.pb = new(Argv) - PB = me.pb + PB = new(Argv) + me.all = NewArgvs() me.debug = true // set the start time of the binary now := time.Now() PB.Ctime = timestamppb.New(now) - me.pb.Uuid = uuid.New().String() // todo: add options to track this + PB.Uuid = uuid.New().String() // todo: add options to track this // needed by bash for autocomplete, help & debugging Stdout = NewStringWriter(&PB.Stdout) // bash uses this to match strings @@ -46,7 +46,7 @@ func Init(dest any, APPNAME string, anyString string, VERSION string) { app.BUILDTIME = anyString fmt.Printf("TIME initAppname() ERR=(%v) anyString=(%v) GetTime.BUILTIME=(%v) app.BUILDTIME=(%v)\n", err, anyString, BUILDTIME, app.BUILDTIME) } - me.pb.AppInfo = app + PB.AppInfo = app // makes sure the application has the // needed functions defined, otherwise dies |
