From 76eb759ee0ebc4dd4c06a282bbc011904b9ea2ea Mon Sep 17 00:00:00 2001 From: Kyle Quest Date: Wed, 1 Jan 2025 22:19:26 -0800 Subject: [PATCH] default xray --changes flag to all Signed-off-by: Kyle Quest --- README.md | 4 ++-- pkg/app/master/command/xray/flags.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e56967e8..231dd7f7 100644 --- a/README.md +++ b/README.md @@ -365,8 +365,8 @@ To disable the version checks set the global `--check-version` flag to `false` ( - `--registry-account` - Account to be used when pulling images from private registries (used with the `--pull` flag). - `--registry-secret` - Account secret to be used when pulling images from private registries (used with the `--pull` and `--registry-account` flags). - `--show-plogs` - Show image pull logs (default: false). -- `--changes value` - Show layer change details for the selected change type (values: none, all, delete, modify, add). -- `--changes-output value` - Where to show the changes (values: all, report, console). +- `--changes value` - Show layer change details for the selected change type (values: `none`, `all`, `delete`, `modify`, `add`; defaults to `all`). +- `--changes-output value` - Where to show the changes (values: `all`, `report`, `console`). - `--layer value` - Show details for the selected layer (using layer index or ID) - `--add-image-manifest` - Add raw image manifest to the command execution report file - `--add-image-config` - Add raw image config object to the command execution report file diff --git a/pkg/app/master/command/xray/flags.go b/pkg/app/master/command/xray/flags.go index fac65170..318a97b1 100644 --- a/pkg/app/master/command/xray/flags.go +++ b/pkg/app/master/command/xray/flags.go @@ -96,21 +96,21 @@ const ( var Flags = map[string]cli.Flag{ FlagChanges: &cli.StringSliceFlag{ Name: FlagChanges, - Value: cli.NewStringSlice(""), + Value: cli.NewStringSlice("all"), Usage: FlagChangesUsage, - EnvVars: []string{"DSLIM_CHANGES"}, + EnvVars: []string{"DSLIM_XRAY_CHANGES"}, }, FlagChangesOutput: &cli.StringSliceFlag{ Name: FlagChangesOutput, Value: cli.NewStringSlice("all"), Usage: FlagChangesOutputUsage, - EnvVars: []string{"DSLIM_CHANGES_OUTPUT"}, + EnvVars: []string{"DSLIM_XRAY_CHANGES_OUTPUT"}, }, FlagLayer: &cli.StringSliceFlag{ Name: FlagLayer, Value: cli.NewStringSlice(), Usage: FlagLayerUsage, - EnvVars: []string{"DSLIM_LAYER"}, + EnvVars: []string{"DSLIM_XRAY_LAYER"}, }, FlagAddImageManifest: &cli.BoolFlag{ Name: FlagAddImageManifest,