|
|
@ -50,13 +50,14 @@ type searchCmd struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func newSearchCmd(out io.Writer) *cobra.Command {
|
|
|
|
func newSearchCmd(out io.Writer) *cobra.Command {
|
|
|
|
sc := &searchCmd{out: out, helmhome: settings.Home}
|
|
|
|
sc := &searchCmd{out: out}
|
|
|
|
|
|
|
|
|
|
|
|
cmd := &cobra.Command{
|
|
|
|
cmd := &cobra.Command{
|
|
|
|
Use: "search [keyword]",
|
|
|
|
Use: "search [keyword]",
|
|
|
|
Short: "search for a keyword in charts",
|
|
|
|
Short: "search for a keyword in charts",
|
|
|
|
Long: searchDesc,
|
|
|
|
Long: searchDesc,
|
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
|
|
|
|
sc.helmhome = settings.Home
|
|
|
|
return sc.run(args)
|
|
|
|
return sc.run(args)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|