From 46773f4290adb32f0a51b8c8fb79816e3f807103 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Oct 2025 04:56:06 -0500 Subject: move stuff to fhelp --- exit.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'exit.go') 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) } -- cgit v1.2.3