summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-07 04:56:06 -0500
committerJeff Carr <[email protected]>2025-10-07 04:56:06 -0500
commit46773f4290adb32f0a51b8c8fb79816e3f807103 (patch)
tree112be9edcefb3c7b6826930efc3bf3fdcc43d3e3 /exit.go
parentacd07ddd1ab5a758d239fa57fca1931d21da1fd7 (diff)
move stuff to fhelpv0.0.24
Diffstat (limited to 'exit.go')
-rw-r--r--exit.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/exit.go b/exit.go
index 5c8047d..c6390b5 100644
--- a/exit.go
+++ b/exit.go
@@ -4,7 +4,7 @@ import (
"os"
"time"
- "go.wit.com/lib/gui/shell"
+ "go.wit.com/lib/config"
"go.wit.com/log"
)
@@ -12,7 +12,7 @@ import (
func (pb *Auto) GoodExit(msg string) {
dur := time.Since(pb.Ctime.AsTime())
- log.Infof("%s: %s (%s)\n", pb.Argname, msg, shell.FormatDuration(dur))
+ log.Infof("%s: %s (%s)\n", pb.Argname, msg, config.FormatDuration(dur))
os.Exit(0)
}
@@ -21,6 +21,6 @@ func (pb *Auto) BadExit(msg string, err error) {
log.Info(err)
}
dur := time.Since(pb.Ctime.AsTime())
- log.Infof("%s: %s (%s)\n", pb.Argname, msg, shell.FormatDuration(dur))
+ log.Infof("%s: %s (%s)\n", pb.Argname, msg, config.FormatDuration(dur))
os.Exit(-1)
}