summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-08 04:07:53 -0600
committerJeff Carr <[email protected]>2024-11-08 04:07:53 -0600
commit54b9acef69d2165d7692a85d6b5684240b915c85 (patch)
tree86e6d5a93a9b5c40b3fddf39886046d9782f90a1 /main.go
parent38e55b2609031459ebdfc42ba03307bca4ff0263 (diff)
switch to using go-cmd/cmd
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 6 insertions, 0 deletions
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