summaryrefslogtreecommitdiff
path: root/shell.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 18:49:41 -0600
committerJeff Carr <[email protected]>2024-12-17 18:49:41 -0600
commit10cc012a125e80ffb95dbc28c99d443e4427a0ba (patch)
tree7a9dbb21e25e9743e2be1b77874eb95787b795d4 /shell.go
parent233f7bca767aab9df55adea409e9820050631586 (diff)
move Revert() here
Diffstat (limited to 'shell.go')
-rw-r--r--shell.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/shell.go b/shell.go
index b7c0018..c9ea1ed 100644
--- a/shell.go
+++ b/shell.go
@@ -108,3 +108,16 @@ func (repo *Repo) IsDirectory() bool {
}
return info.IsDir()
}
+
+func (repo *Repo) RunAll(all [][]string) bool {
+ for _, cmd := range all {
+ log.Log(GITPBWARN, "doAll() RUNNING: cmd =", cmd)
+ r := repo.Run(cmd)
+ if r.Error != nil {
+ log.Log(GITPBWARN, "doAll() err =", r.Error)
+ log.Log(GITPBWARN, "doAll() out =", r.Stdout)
+ return false
+ }
+ }
+ return true
+}