summaryrefslogtreecommitdiff
path: root/shell.go
diff options
context:
space:
mode:
Diffstat (limited to 'shell.go')
-rw-r--r--shell.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/shell.go b/shell.go
index de82f84..e7ed273 100644
--- a/shell.go
+++ b/shell.go
@@ -23,6 +23,17 @@ func (repo *Repo) Run(cmd []string) cmd.Status {
return result
}
+func (repo *Repo) RunQuiet(cmd []string) cmd.Status {
+ result := shell.PathRunQuiet(repo.FullPath, cmd)
+ output := strings.Join(result.Stdout, "\n")
+ if result.Error != nil {
+ log.Warn("cmd:", cmd)
+ log.Warn("ouptput:", output)
+ log.Warn("failed with error:", result.Error)
+ }
+ return result
+}
+
// for now, even check cmd.Exit
func (repo *Repo) strictRun(cmd []string) (bool, error) {
result := repo.Run(cmd)