diff options
| author | Jeff Carr <[email protected]> | 2024-11-28 21:04:10 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-28 21:04:10 -0600 |
| commit | 3b90d979d73da9896570d2dc927e05e769b9670b (patch) | |
| tree | b9306baa9ebd24d873aea30712b0944c2667f578 /shell.go | |
| parent | 02b9ed57b3e1cff11d4ac45c4078900e8ab9685e (diff) | |
init things from here
Diffstat (limited to 'shell.go')
| -rw-r--r-- | shell.go | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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) |
