summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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