summaryrefslogtreecommitdiff
path: root/shell.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-28 21:04:10 -0600
committerJeff Carr <[email protected]>2024-11-28 21:04:10 -0600
commit3b90d979d73da9896570d2dc927e05e769b9670b (patch)
treeb9306baa9ebd24d873aea30712b0944c2667f578 /shell.go
parent02b9ed57b3e1cff11d4ac45c4078900e8ab9685e (diff)
init things from here
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)