|
|
@ -49,9 +49,7 @@ const repoDesc = `Helm repositories store Helm charts.
|
|
|
|
For more details, use 'helm repo CMD -h'.
|
|
|
|
For more details, use 'helm repo CMD -h'.
|
|
|
|
`
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
|
|
const addRepoDesc = `helm repository|repo add [NAME] [REPOSITORY_URL]
|
|
|
|
const addRepoDesc = ` The add repository command is used to add a name a repository url to your
|
|
|
|
|
|
|
|
|
|
|
|
The add repository command is used to add a name a repository url to your
|
|
|
|
|
|
|
|
chart repository list. The repository url must begin with a valid protocoal
|
|
|
|
chart repository list. The repository url must begin with a valid protocoal
|
|
|
|
These include https, http, and gs.
|
|
|
|
These include https, http, and gs.
|
|
|
|
|
|
|
|
|
|
|
@ -99,7 +97,7 @@ func addRepo(c *cli.Context) error {
|
|
|
|
repoURL := args[1]
|
|
|
|
repoURL := args[1]
|
|
|
|
valid := IsValidURL(repoURL)
|
|
|
|
valid := IsValidURL(repoURL)
|
|
|
|
if !valid {
|
|
|
|
if !valid {
|
|
|
|
return errors.New(repoURL + " is not a valid URL")
|
|
|
|
return errors.New(repoURL + " is not a valid REPOSITOTY_URL argument \n" + addRepoDesc)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
payload, _ := json.Marshal(repo.Repo{URL: repoURL, Name: name})
|
|
|
|
payload, _ := json.Marshal(repo.Repo{URL: repoURL, Name: name})
|
|
|
|
msg := ""
|
|
|
|
msg := ""
|
|
|
|