Replace cli flag --list-repo with --list-repo-url

Signed-off-by: Dmitrii Ermakov <demonihin@gmail.com>
pull/9119/head
Dmitrii Ermakov 3 years ago
parent 5570588619
commit 144048d5fa

@ -71,7 +71,7 @@ func newSearchHubCmd(out io.Writer) *cobra.Command {
f := cmd.Flags() f := cmd.Flags()
f.StringVar(&o.searchEndpoint, "endpoint", "https://hub.helm.sh", "Hub instance to query for charts") f.StringVar(&o.searchEndpoint, "endpoint", "https://hub.helm.sh", "Hub instance to query for charts")
f.UintVar(&o.maxColWidth, "max-col-width", 50, "maximum column width for output table") f.UintVar(&o.maxColWidth, "max-col-width", 50, "maximum column width for output table")
f.BoolVar(&o.listRepoURL, "list-repo", false, "print charts repository URL") f.BoolVar(&o.listRepoURL, "list-repo-url", false, "print charts repository URL")
bindOutputFlag(cmd, &o.outputFormat) bindOutputFlag(cmd, &o.outputFormat)

@ -70,7 +70,7 @@ func TestSearchHubListRepoCmd(t *testing.T) {
%s/charts/bitnami/phpmyadmin 3.0.0 4.9.0-1 phpMyAdmin is an mysql administration frontend https://charts.bitnami.com %s/charts/bitnami/phpmyadmin 3.0.0 4.9.0-1 phpMyAdmin is an mysql administration frontend https://charts.bitnami.com
`, ts.URL, ts.URL) `, ts.URL, ts.URL)
testcmd := "search hub --list-repo --endpoint " + ts.URL + " maria" testcmd := "search hub --list-repo-url --endpoint " + ts.URL + " maria"
storage := storageFixture() storage := storageFixture()
_, out, err := executeActionCommandC(storage, testcmd) _, out, err := executeActionCommandC(storage, testcmd)
if err != nil { if err != nil {

Loading…
Cancel
Save