Updating the search language and flags for consistency

Signed-off-by: Matt Farina <matt@mattfarina.com>
pull/6211/head
Matt Farina 5 years ago
parent 90d2bac80c
commit 8595fe6a35
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909

@ -50,7 +50,7 @@ func newSearchHubCmd(out io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "hub [keyword]",
Short: "search for a keyword in charts",
Short: "search for charts in the Helm Hub or an instance of Monocular",
Long: searchHubDesc,
RunE: func(cmd *cobra.Command, args []string) error {
return o.run(out, args)
@ -59,7 +59,7 @@ func newSearchHubCmd(out io.Writer) *cobra.Command {
f := cmd.Flags()
f.StringVar(&o.searchEndpoint, "endpoint", "https://hub.helm.sh", "monocular instance to query for charts")
f.UintVar(&o.maxColWidth, "maxColumnWidth", 50, "maximum column width for output table")
f.UintVar(&o.maxColWidth, "max-col-width", 50, "maximum column width for output table")
return cmd
}

@ -54,7 +54,7 @@ func newSearchRepoCmd(out io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "repo [keyword]",
Short: "search for a keyword in charts",
Short: "search repositories for a keyword in charts",
Long: searchRepoDesc,
RunE: func(cmd *cobra.Command, args []string) error {
return o.run(out, args)
@ -65,7 +65,7 @@ func newSearchRepoCmd(out io.Writer) *cobra.Command {
f.BoolVarP(&o.regexp, "regexp", "r", false, "use regular expressions for searching repositories you have added")
f.BoolVarP(&o.versions, "versions", "l", false, "show the long listing, with each version of each chart on its own line, for repositories you have added")
f.StringVar(&o.version, "version", "", "search using semantic versioning constraints on repositories you have added")
f.UintVar(&o.maxColWidth, "maxColumnWidth", 50, "maximum column width for output table")
f.UintVar(&o.maxColWidth, "max-col-width", 50, "maximum column width for output table")
return cmd
}

Loading…
Cancel
Save