Skip to content

Commit 76eb759

Browse files
committed
default xray --changes flag to all
Signed-off-by: Kyle Quest <kcq.public@gmail.com>
1 parent 617fb2c commit 76eb759

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,8 @@ To disable the version checks set the global `--check-version` flag to `false` (
365365
- `--registry-account` - Account to be used when pulling images from private registries (used with the `--pull` flag).
366366
- `--registry-secret` - Account secret to be used when pulling images from private registries (used with the `--pull` and `--registry-account` flags).
367367
- `--show-plogs` - Show image pull logs (default: false).
368-
- `--changes value` - Show layer change details for the selected change type (values: none, all, delete, modify, add).
369-
- `--changes-output value` - Where to show the changes (values: all, report, console).
368+
- `--changes value` - Show layer change details for the selected change type (values: `none`, `all`, `delete`, `modify`, `add`; defaults to `all`).
369+
- `--changes-output value` - Where to show the changes (values: `all`, `report`, `console`).
370370
- `--layer value` - Show details for the selected layer (using layer index or ID)
371371
- `--add-image-manifest` - Add raw image manifest to the command execution report file
372372
- `--add-image-config` - Add raw image config object to the command execution report file

pkg/app/master/command/xray/flags.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,21 +96,21 @@ const (
9696
var Flags = map[string]cli.Flag{
9797
FlagChanges: &cli.StringSliceFlag{
9898
Name: FlagChanges,
99-
Value: cli.NewStringSlice(""),
99+
Value: cli.NewStringSlice("all"),
100100
Usage: FlagChangesUsage,
101-
EnvVars: []string{"DSLIM_CHANGES"},
101+
EnvVars: []string{"DSLIM_XRAY_CHANGES"},
102102
},
103103
FlagChangesOutput: &cli.StringSliceFlag{
104104
Name: FlagChangesOutput,
105105
Value: cli.NewStringSlice("all"),
106106
Usage: FlagChangesOutputUsage,
107-
EnvVars: []string{"DSLIM_CHANGES_OUTPUT"},
107+
EnvVars: []string{"DSLIM_XRAY_CHANGES_OUTPUT"},
108108
},
109109
FlagLayer: &cli.StringSliceFlag{
110110
Name: FlagLayer,
111111
Value: cli.NewStringSlice(),
112112
Usage: FlagLayerUsage,
113-
EnvVars: []string{"DSLIM_LAYER"},
113+
EnvVars: []string{"DSLIM_XRAY_LAYER"},
114114
},
115115
FlagAddImageManifest: &cli.BoolFlag{
116116
Name: FlagAddImageManifest,

0 commit comments

Comments
 (0)