Simplified cli commands to make things easier to use.

This commit is contained in:
Travis Reeder
2017-05-15 16:51:59 -07:00
parent 7cfd7d413f
commit 014858143b
5 changed files with 40 additions and 82 deletions

View File

@@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
@@ -16,10 +15,11 @@ import (
)
func verbwriter(verbose bool) io.Writer {
verbwriter := ioutil.Discard
if verbose {
verbwriter = os.Stderr
}
// this is too limiting, removes all logs which isn't what we want
// verbwriter := ioutil.Discard
// if verbose {
verbwriter := os.Stderr
// }
return verbwriter
}