feat(repo): add `repo add` command description

pull/489/head
Michelle Noorali 10 years ago
parent 434058c608
commit 41f4705ec9

@ -43,6 +43,14 @@ 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 = `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. At the moment,
we only support google cloud storage for chart repositories.
A valid command might look like:
$ helm repo add charts gs://kubernetes-charts
`
func repoCommands() cli.Command { func repoCommands() cli.Command {
return cli.Command{ return cli.Command{
Name: "repository", Name: "repository",
@ -51,10 +59,11 @@ func repoCommands() cli.Command {
Description: repoDesc, Description: repoDesc,
Subcommands: []cli.Command{ Subcommands: []cli.Command{
{ {
Name: "add", Name: "add",
Usage: "Add a chart repository to the remote manager.", Usage: "Add a chart repository to the remote manager.",
ArgsUsage: "[NAME] [REPOSITORY_URL]", Description: addRepoDesc,
Action: func(c *cli.Context) { run(c, addRepo) }, ArgsUsage: "[NAME] [REPOSITORY_URL]",
Action: func(c *cli.Context) { run(c, addRepo) },
}, },
{ {
Name: "list", Name: "list",

Loading…
Cancel
Save