summaryrefslogtreecommitdiff
path: root/shell.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-06-07 01:15:37 -0700
committerJeff Carr <[email protected]>2019-06-07 01:15:37 -0700
commit2fcc7947db28b2d48e4fcf71a129f615d1e702b5 (patch)
tree77b06c4509eddf47e0e1a641164df14edc45c51d /shell.go
parentb56c3fe1f6ecd91c771c8a80cca779f1dc6ace8a (diff)
add a quiet flag and some other fixes
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'shell.go')
-rw-r--r--shell.go4
1 files changed, 2 insertions, 2 deletions
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 {