From 54b9acef69d2165d7692a85d6b5684240b915c85 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 8 Nov 2024 04:07:53 -0600 Subject: switch to using go-cmd/cmd Signed-off-by: Jeff Carr --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index edc3fda..4f30d19 100644 --- a/main.go +++ b/main.go @@ -27,6 +27,8 @@ var basicWindow *gadgets.BasicWindow var resources embed.FS func main() { + // RunTest() + // os.Exit(0) if argv.Repo == "" { log.Info("You need to tell me what repo you want to work on") println("") @@ -67,6 +69,10 @@ func main() { os.Exit(-1) } + // set the working directory to argv.Repo + log.Info("cd", cBox.status.Path()) + os.Chdir(cBox.status.Path()) + if argv.NoGui { shell.TestTerminalColor() // basicWindow.Show() // broken gui package. convert to protobuf -- cgit v1.2.3