From 3ec8400a9d59d03a85fedd3788a0c97638754a92 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 1 Dec 2024 22:22:27 -0600 Subject: [PATCH] add RunQuiet() --- cmd.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd.go b/cmd.go index 2b65edb..02cc017 100644 --- a/cmd.go +++ b/cmd.go @@ -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 {