mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 02:26:42 +01:00
cli: default to the new text presenter
Signed-off-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
parent
2e6aef17e1
commit
0a1f99503f
@ -28,7 +28,7 @@ func setCliOptions() {
|
|||||||
// output & formatting options
|
// output & formatting options
|
||||||
flag = "output"
|
flag = "output"
|
||||||
rootCmd.Flags().StringP(
|
rootCmd.Flags().StringP(
|
||||||
flag, "o", presenter.JSONPresenter.String(),
|
flag, "o", presenter.TextPresenter.String(),
|
||||||
fmt.Sprintf("report output formatter, options=%v", presenter.Options),
|
fmt.Sprintf("report output formatter, options=%v", presenter.Options),
|
||||||
)
|
)
|
||||||
if err := viper.BindPFlag(flag, rootCmd.Flags().Lookup(flag)); err != nil {
|
if err := viper.BindPFlag(flag, rootCmd.Flags().Lookup(flag)); err != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user