summaryrefslogtreecommitdiff
path: root/unix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-15 08:11:08 -0600
committerJeff Carr <[email protected]>2024-01-15 08:11:08 -0600
commite240e4149f92ada886884f542522d9b739df450d (patch)
tree2b48ba018463ba5d4163d57bb5006843179023e5 /unix.go
parent74502ed5fbedbf47c69d2bbedb6d96fe369fa129 (diff)
remove perfect branches works
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'unix.go')
-rw-r--r--unix.go40
1 files changed, 40 insertions, 0 deletions
diff --git a/unix.go b/unix.go
new file mode 100644
index 0000000..adb0b95
--- /dev/null
+++ b/unix.go
@@ -0,0 +1,40 @@
+package main
+
+import (
+ "strings"
+ "go.wit.com/log"
+
+ "go.wit.com/gui/gadgets/repostatus"
+)
+
+var repopath string = "/home/jcarr/"
+
+func runCommands() bool {
+ for _, line := range script {
+ s := strings.Join(line, " ")
+ log.Warn("NEED TO RUN:", s)
+ err, b, output := repostatus.RunCmd(repopath, line)
+ if err != nil {
+ log.Warn("ABEND EXECUTION")
+ log.Warn("error =", err)
+ log.Warn("output =", output)
+ return false
+ }
+ log.Warn("Returned with b =", b)
+ log.Warn("output was =", output)
+ log.Warn("RUN DONE")
+ }
+ return true
+}
+
+func setGitCommands() {
+ var tmp []string
+ // convert to displayable to the user text
+ for _, line := range script {
+ s := strings.Join(line, " ")
+ log.Warn("s =", s)
+ tmp = append(tmp, s)
+ }
+ cmds.Set(strings.Join(tmp, "\n"))
+}
+