diff options
| author | Jeff Carr <[email protected]> | 2024-12-17 18:49:41 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-17 18:49:41 -0600 |
| commit | 10cc012a125e80ffb95dbc28c99d443e4427a0ba (patch) | |
| tree | 7a9dbb21e25e9743e2be1b77874eb95787b795d4 /shell.go | |
| parent | 233f7bca767aab9df55adea409e9820050631586 (diff) | |
move Revert() here
Diffstat (limited to 'shell.go')
| -rw-r--r-- | shell.go | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 +} |
