summaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-15 08:45:44 -0600
committerJeff Carr <[email protected]>2024-12-15 08:45:44 -0600
commitb3bfa8915c1cc39bb36094829273d43621eb39ee (patch)
tree4538664a91c049e4f523a4e9ec44cf7fe3062795 /build.go
parent7cade75da86c346cd39ee37e85c066347cdaf274 (diff)
lots more code cleanups
Diffstat (limited to 'build.go')
-rw-r--r--build.go24
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
+}