From 2fcc7947db28b2d48e4fcf71a129f615d1e702b5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 7 Jun 2019 01:15:37 -0700 Subject: add a quiet flag and some other fixes Signed-off-by: Jeff Carr --- shell.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell.go') diff --git a/shell.go b/shell.go index d4bdb74..0617db0 100644 --- a/shell.go +++ b/shell.go @@ -44,8 +44,8 @@ func InitCallback(f func(interface{}, int)) { } // this means it won't copy all the output to STDOUT -func Quiet() { - quiet = true +func Quiet(q bool) { + quiet = q } func Script(cmds string) int { -- cgit v1.2.3