summaryrefslogtreecommitdiff
path: root/interface.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-18 10:42:40 -0500
committerJeff Carr <[email protected]>2025-10-18 10:42:40 -0500
commitce1745d37a24bf95f70463e558d792419b37de6f (patch)
tree4df955dc87ca8a920075ae797c37bd8a47195117 /interface.go
parent748ac1d8c6bb87c2c8e7c9e2db2608ee1a0a9979 (diff)
notsure. need to redo this still
Diffstat (limited to 'interface.go')
-rw-r--r--interface.go25
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