fix(cmd): clean up helpstring formatting

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
pull/6806/head
Matthew Fisher 5 years ago
parent ce494146a4
commit e2233bb571
No known key found for this signature in database
GPG Key ID: 92AA783CBAAE8E3B

@ -26,9 +26,7 @@ import (
const chartHelp = ` const chartHelp = `
This command consists of multiple subcommands to work with the chart cache. This command consists of multiple subcommands to work with the chart cache.
It can be used to push, pull, tag, list, or remove Helm charts. The subcommands can be used to push, pull, tag, list, or remove Helm charts.
Example usage:
$ helm chart pull [URL]
` `
func newChartCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { func newChartCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {

@ -35,8 +35,6 @@ This command can generate documentation for Helm in the following formats:
- Man pages - Man pages
It can also generate bash autocompletions. It can also generate bash autocompletions.
$ helm docs markdown -dir mydocs/
` `
type docsOptions struct { type docsOptions struct {

@ -41,7 +41,7 @@ configures the maximum length of the revision list returned.
The historical release set is printed as a formatted table, e.g: The historical release set is printed as a formatted table, e.g:
$ helm history angry-bird --max=4 $ helm history angry-bird
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
1 Mon Oct 3 10:15:13 2016 superseded alpine-0.1.0 1.0 Initial install 1 Mon Oct 3 10:15:13 2016 superseded alpine-0.1.0 1.0 Initial install
2 Mon Oct 3 10:15:13 2016 superseded alpine-0.1.0 1.0 Upgraded successfully 2 Mon Oct 3 10:15:13 2016 superseded alpine-0.1.0 1.0 Upgraded successfully

@ -33,9 +33,6 @@ type pluginInstallOptions struct {
const pluginInstallDesc = ` const pluginInstallDesc = `
This command allows you to install a plugin from a url to a VCS repo or a local path. This command allows you to install a plugin from a url to a VCS repo or a local path.
Example usage:
$ helm plugin install https://github.com/technosophos/helm-template
` `
func newPluginInstallCmd(out io.Writer) *cobra.Command { func newPluginInstallCmd(out io.Writer) *cobra.Command {

@ -25,10 +25,6 @@ import (
const registryHelp = ` const registryHelp = `
This command consists of multiple subcommands to interact with registries. This command consists of multiple subcommands to interact with registries.
It can be used to login to or logout from a registry.
Example usage:
$ helm registry login [URL]
` `
func newRegistryCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { func newRegistryCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {

@ -30,8 +30,6 @@ var repoHelm = `
This command consists of multiple subcommands to interact with chart repositories. This command consists of multiple subcommands to interact with chart repositories.
It can be used to add, remove, list, and index chart repositories. It can be used to add, remove, list, and index chart repositories.
Example usage:
$ helm repo add [NAME] [REPO_URL]
` `
func newRepoCmd(out io.Writer) *cobra.Command { func newRepoCmd(out io.Writer) *cobra.Command {

@ -311,17 +311,22 @@ var globalUsage = `The Kubernetes package manager
Common actions for Helm: Common actions for Helm:
- helm search: search for charts - helm search: search for charts
- helm fetch: download a chart to your local directory to view - helm pull: download a chart to your local directory to view
- helm install: upload the chart to Kubernetes - helm install: upload the chart to Kubernetes
- helm list: list releases of charts - helm list: list releases of charts
Environment: Environment variables:
$XDG_CACHE_HOME set an alternative location for storing cached files.
$XDG_CONFIG_HOME set an alternative location for storing Helm configuration. +------------------+-----------------------------------------------------------------------------+
$XDG_DATA_HOME set an alternative location for storing Helm data. | Name | Description |
$HELM_DRIVER set the backend storage driver. Values are: configmap, secret, memory +------------------+-----------------------------------------------------------------------------+
$HELM_NO_PLUGINS disable plugins. Set HELM_NO_PLUGINS=1 to disable plugins. | $XDG_CACHE_HOME | set an alternative location for storing cached files. |
$KUBECONFIG set an alternative Kubernetes configuration file (default "~/.kube/config") | $XDG_CONFIG_HOME | set an alternative location for storing Helm configuration. |
| $XDG_DATA_HOME | set an alternative location for storing Helm data. |
| $HELM_DRIVER | set the backend storage driver. Values are: configmap, secret, memory |
| $HELM_NO_PLUGINS | disable plugins. Set HELM_NO_PLUGINS=1 to disable plugins. |
| $KUBECONFIG | set an alternative Kubernetes configuration file (default "~/.kube/config") |
+------------------+-----------------------------------------------------------------------------+
Helm stores configuration based on the XDG base directory specification, so Helm stores configuration based on the XDG base directory specification, so

Loading…
Cancel
Save