diff options
| author | Jeff Carr <[email protected]> | 2025-10-27 01:36:26 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-27 01:36:26 -0500 |
| commit | 8a0353dfd94e24d2b1a67a2b5c1cdac37c91ad35 (patch) | |
| tree | 5919de8dca68c3b9d0b38f2bda9c2a52daaeeb2a /init.go | |
| parent | 6eb6625374d6d0f0f81245f549ffac3542f29790 (diff) | |
minorv0.0.47
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -14,6 +14,11 @@ func Init(dest any, APPNAME string, anyString string, VERSION string) { me.pb = new(Argv) PB = me.pb + // needed by bash for autocomplete, help & debugging + Stdout = NewStringWriter(&PB.Stdout) // bash uses this to match strings + Stderr = NewStringWriter(&PB.Stderr) // bash dumps this as "help" about application options + Stddbg = NewStringWriter(&PB.Stderr) // argv writes it's internal debugging output here + app := new(App) app.APPNAME = APPNAME app.VERSION = VERSION @@ -37,7 +42,7 @@ func Init(dest any, APPNAME string, anyString string, VERSION string) { } me.pb.AppInfo = app - fakeStdout() + // shouldn't be needed but is because this code doesn't work right yet me.pb.Uuid = uuid.New().String() // set the start time of the binary |
