Skip to content

Commit

Permalink
feat: Enable unique filtering images by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson committed Jul 3, 2023
1 parent 350fa23 commit 10f07aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ func registerFlags(cmd *cobra.Command, images *pkg.Images) {
"log level for the plugin helm list-images (defaults to info)")
cmd.Flags().StringVarP(&images.ImageRegex, "image-regex", "", pkg.ImageRegex,
"regex used to split helm template rendered")
cmd.Flags().BoolVarP(&images.UniqueImages, "unique", "u", false,
"enable the flag if duplicates to be removed from the retrieved list (disabled by default also overrides --kind)")
cmd.Flags().BoolVarP(&images.UniqueImages, "unique", "u", true,
"enable the flag if duplicates to be removed from the retrieved list")
cmd.Flags().BoolVarP(&images.JSON, "json", "j", false,
"enable the flag to display images retrieved in json format (disabled by default)")
cmd.Flags().BoolVarP(&images.YAML, "yaml", "y", false,
Expand Down
2 changes: 1 addition & 1 deletion docs/doc/list-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ list-images CHART|RELEASE [flags]
--set-literal stringArray set a literal STRING value on the command line
--set-string stringArray set STRING values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)
-t, --table enable the flag to display images retrieved in table format (disabled by default)
-u, --unique enable the flag if duplicates to be removed from the retrieved list (disabled by default also overrides --kind)
-u, --unique enable the flag if duplicates to be removed from the retrieved list (default true)
-f, --values ValueFiles specify values in a YAML file (can specify multiple) (default [])
--version version[=true] Print version information and quit
-y, --yaml enable the flag to display images retrieved in yaml format (disabled by default)
Expand Down

0 comments on commit 10f07aa

Please sign in to comment.