mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-11 23:50:05 +01:00
Add --quiet option to suppress git progress output
This commit is contained in:
parent
15c0828a2f
commit
637111ed16
3 changed files with 17 additions and 3 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue