Add --quiet option to suppress git progress output

This commit is contained in:
Hang Xie 2020-07-06 23:32:36 +00:00
parent 15c0828a2f
commit 637111ed16
3 changed files with 17 additions and 3 deletions

View file

@ -22,6 +22,8 @@ import (
"github.com/fatih/color"
"github.com/pkg/errors"
"gopkg.in/alecthomas/kingpin.v2"
"github.com/jsonnet-bundler/jsonnet-bundler/pkg"
)
const (
@ -49,6 +51,8 @@ func Main() int {
a.Flag("jsonnetpkg-home", "The directory used to cache packages in.").
Default("vendor").StringVar(&cfg.JsonnetHome)
a.Flag("quiet", "Suppress any output from git command.").
Short('q').BoolVar(&pkg.GitQuiet)
initCmd := a.Command(initActionName, "Initialize a new empty jsonnetfile")