From 3b90d979d73da9896570d2dc927e05e769b9670b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 28 Nov 2024 21:04:10 -0600 Subject: init things from here --- shell.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'shell.go') 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) -- cgit v1.2.3