Skip to content

Commit

Permalink
refactor: Add registry-config flag
Browse files Browse the repository at this point in the history
- Add option to point the pullsecret file
  • Loading branch information
kevydotvinu committed May 30, 2023
1 parent e573ec7 commit 664ba64
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func RootCommand(f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra
oc rpm
# Show the list of RPMs in the release
oc rpm 4.11.2
oc rpm 4.13.0
`),
RunE: func(cmd *cobra.Command, args []string) error {
if err := cobra.MaximumNArgs(1)(cmd, args); err != nil {
Expand All @@ -50,7 +50,10 @@ func RootCommand(f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra
return nil
},
}

flags := rootCmd.Flags()
rootOptions.SecurityOptions.Bind(flags)
rootOptions.FilterOptions.Bind(flags)
rootOptions.ParallelOptions.Bind(flags)
return rootCmd
}

Expand Down

0 comments on commit 664ba64

Please sign in to comment.