diff options
Diffstat (limited to 'build.go')
| -rw-r--r-- | build.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/build.go b/build.go new file mode 100644 index 0000000..797efdb --- /dev/null +++ b/build.go @@ -0,0 +1,24 @@ +package main + +import ( + "os" + + "go.wit.com/lib/gui/shell" + "go.wit.com/log" +) + +func build() error { + err := forge.Build(workingRepo, nil) + pwd, _ := os.Getwd() + if err == nil { + log.Info("this totally worked", pwd) + shell.RunEcho([]string{"ls", "-l"}) + log.Info("ran ls") + } else { + log.Info("this totally did not work", pwd) + shell.RunEcho([]string{"ls", "-l"}) + log.Info("ran ls") + badExit(err) + } + return err +} |
