From a75e4796680ecf33b74db60b6b780d6e7e6cc0f3 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 26 Oct 2025 10:06:13 -0500 Subject: new argv (much better than before) --- exit.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'exit.go') diff --git a/exit.go b/exit.go index 4e87fd2..b091f20 100644 --- a/exit.go +++ b/exit.go @@ -2,8 +2,8 @@ package main import ( "fmt" - "path/filepath" + "go.wit.com/lib/protobuf/argvpb" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) @@ -11,7 +11,7 @@ import ( func okExit(check *gitpb.Repo, msg string) { log.Info("exit() go-mod-clean on", check.Namespace, "ok") log.DaemonMode(true) - me.argv.GoodExit(msg) + argvpb.GoodExit(msg) } func badExit(check *gitpb.Repo, err error) { @@ -22,7 +22,6 @@ func badExit(check *gitpb.Repo, err error) { eraseGoMod(check) } } - fullpath := filepath.Join(check.FullPath) - s := fmt.Sprintf("failed in %s", fullpath) - me.argv.BadExit(s, err) + s := fmt.Sprintf("failed in %s", check.FullPath) + argvpb.BadExit(s, err) } -- cgit v1.2.3