add RunQuiet()

This commit is contained in:
Jeff Carr 2024-12-01 22:22:27 -06:00
parent f0b4869dfa
commit 3ec8400a9d
1 changed files with 6 additions and 0 deletions

6
cmd.go
View File

@ -122,6 +122,12 @@ func PathRunLog(path string, argv []string, logf *log.LogFlag) cmd.Status {
return s
}
// uses the 'log' package to disable echo to STDOUT
// only echos if you enable the shell.INFO log flag
func RunQuiet(args []string) cmd.Status {
return PathRunLog("", args, INFO)
}
// uses the 'log' package to disable echo to STDOUT
// only echos if you enable the shell.INFO log flag
func PathRunQuiet(pwd string, args []string) cmd.Status {