From 664ba6428238aea37984bab481366a487e70738f Mon Sep 17 00:00:00 2001 From: Vinu K Date: Tue, 30 May 2023 08:46:17 +0530 Subject: [PATCH] refactor: Add registry-config flag - Add option to point the pullsecret file --- main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 4969cbc..bef592b 100644 --- a/main.go +++ b/main.go @@ -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 { @@ -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 }