Skip to content

Commit

Permalink
Replace cli flag --list-repo with --list-repo-url
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitrii Ermakov <demonihin@gmail.com>
  • Loading branch information
ErmakovDmitriy committed Aug 29, 2021
1 parent 5570588 commit 144048d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/helm/search_hub.go
Expand Up @@ -71,7 +71,7 @@ func newSearchHubCmd(out io.Writer) *cobra.Command {
f := cmd.Flags()
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.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)

Expand Down
2 changes: 1 addition & 1 deletion cmd/helm/search_hub_test.go
Expand Up @@ -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
`, 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()
_, out, err := executeActionCommandC(storage, testcmd)
if err != nil {
Expand Down

0 comments on commit 144048d

Please sign in to comment.