diff options
Diffstat (limited to 'interface.go')
| -rw-r--r-- | interface.go | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/interface.go b/interface.go index a21a0b4..166eb14 100644 --- a/interface.go +++ b/interface.go @@ -1,6 +1,9 @@ package argvpb -import "go.wit.com/log" +import ( + "go.wit.com/lib/cobol" + "go.wit.com/log" +) // this is a work in progress @@ -83,7 +86,11 @@ type exitI interface { func findAppInfo(tmp interface{}) { // THIS STUFF IS FINALIZED FOR NOW 2025/10/18 (review in a few months) if tmp, ok := tmp.(initArgvI); ok { - me.ARGNAME, me.BUILDTIME, me.VERSION = tmp.InitArgv() + var anyTime string + var err error + me.ARGNAME, anyTime, me.VERSION = tmp.InitArgv() + me.BUILDTIME, err = cobol.GetTime(anyTime) + _ = err } else { panic("you must define in your app the function: (args) func InitArgv() (string, string, string)") } @@ -135,12 +142,14 @@ func findAppInfo(tmp interface{}) { // panic("you must define in your app the function: (argv) func Appname() string") } - if tmp, ok := tmp.(buildtimeI); ok { - me.buildtime = tmp.Buildtime - me.BUILDTIME, me.VERSION = me.buildtime() - } else { - // panic("your app is missing (argv) func Buildtime() (string, string)") - } + /* + if tmp, ok := tmp.(buildtimeI); ok { + me.buildtime = tmp.Buildtime + me.BUILDTIME, me.VERSION = me.buildtime() + } else { + // panic("your app is missing (argv) func Buildtime() (string, string)") + } + */ if tmp, ok := tmp.(examplesI); ok { me.examples = tmp.Examples |
