Skip to content

Commit

Permalink
Fix the default type for the 'granted registry add' command (#657)
Browse files Browse the repository at this point in the history
`DefaultText` is not actually used as the default value, we need to use `Value` instead.
  • Loading branch information
chrnorm authored May 14, 2024
1 parent 5d023c2 commit 14a0416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/granted/registry/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var AddCommand = cli.Command{
&cli.BoolFlag{Name: "prefix-duplicate-profiles", Aliases: []string{"pdp"}, Usage: "Provide this flag if you want to append registry name to duplicate profiles"},
&cli.BoolFlag{Name: "write-on-sync-failure", Aliases: []string{"wosf"}, Usage: "Always overwrite AWS config, even if sync fails (DEPRECATED)"},
&cli.StringSliceFlag{Name: "required-key", Aliases: []string{"r", "requiredKey"}, Usage: "Used to bypass the prompt or override user specific values"},
&cli.StringFlag{Name: "type", DefaultText: "git", Usage: "specify the type of granted registry source you want to set up. Default: git"}},
&cli.StringFlag{Name: "type", Value: "git", Usage: "specify the type of granted registry source you want to set up. Default: git"}},

ArgsUsage: "--name <registry_name> --url <repository_url> --type <registry_type>",
Action: func(c *cli.Context) error {
Expand Down

0 comments on commit 14a0416

Please sign in to comment.