Skip to content

Commit

Permalink
chore: addon search and install add default index (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldming authored Jan 5, 2024
1 parent f777156 commit a912899
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cmd/addon/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ func newInstallCmd(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra
Short: "install KubeBlocks addon",
Args: cobra.ExactArgs(1),
Example: addonInstallExample,
PersistentPreRun: func(_ *cobra.Command, _ []string) {
util.CheckErr(addDefaultIndex())
},
Run: func(cmd *cobra.Command, args []string) {
o.name = args[0]
util.CheckErr(o.Complete())
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/addon/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func newSearchCmd(streams genericiooptions.IOStreams) *cobra.Command {
Args: cobra.ExactArgs(1),
PersistentPreRun: func(cmd *cobra.Command, _ []string) {
util.CheckErr(util.EnableLogToFile(cmd.Flags()))
util.CheckErr(addDefaultIndex())
},
Run: func(_ *cobra.Command, args []string) {
util.CheckErr(search(args, streams.Out))
Expand Down

0 comments on commit a912899

Please sign in to comment.