Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
c225ab8e
Commit
c225ab8e
authored
Mar 25, 2016
by
Matt Butcher
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #453 from technosophos/doc/cli-help
doc(cli): improve help output
parents
d3975520
a07a0f7c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
9 deletions
+76
-9
chart.go
cmd/helm/chart.go
+11
-2
deployment.go
cmd/helm/deployment.go
+15
-3
helm.go
cmd/helm/helm.go
+23
-1
repository.go
cmd/helm/repository.go
+15
-3
server.go
cmd/helm/server.go
+12
-0
No files found.
cmd/helm/chart.go
View file @
c225ab8e
...
@@ -31,11 +31,20 @@ func init() {
...
@@ -31,11 +31,20 @@ func init() {
addCommands
(
chartCommands
())
addCommands
(
chartCommands
())
}
}
const
chartDesc
=
`A Chart is a package that can be installed and managed by Helm.
The 'helm chart' subcommands provide tools for working with Helm charts. To
get started creating your own chart, use 'helm chart create NAME'.
For details, use 'helm chart CMD -h'.
`
func
chartCommands
()
cli
.
Command
{
func
chartCommands
()
cli
.
Command
{
return
cli
.
Command
{
return
cli
.
Command
{
// Names following form prescribed here: http://is.gd/QUSEOF
// Names following form prescribed here: http://is.gd/QUSEOF
Name
:
"chart"
,
Name
:
"chart"
,
Usage
:
"Perform chart-centered operations."
,
Usage
:
"Perform chart-centered operations."
,
Description
:
chartDesc
,
Subcommands
:
[]
cli
.
Command
{
Subcommands
:
[]
cli
.
Command
{
{
{
Name
:
"config"
,
Name
:
"config"
,
...
...
cmd/helm/deployment.go
View file @
c225ab8e
...
@@ -28,6 +28,17 @@ import (
...
@@ -28,6 +28,17 @@ import (
var
errMissingDeploymentArg
=
errors
.
New
(
"First argument, deployment name, is required. Try 'helm get --help'"
)
var
errMissingDeploymentArg
=
errors
.
New
(
"First argument, deployment name, is required. Try 'helm get --help'"
)
const
deploymentDesc
=
`A deployment is an instance of a Chart running in the cluster.
Deployments have a name, a chart, and possibly a set of properites. The deployment
commands provide tools for managing deployments.
To deploy a new chart, use the top-level 'helm deploy' command. From there,
the 'helm deployment' commands may be used to work with the deployed
application.
For more help, use 'helm deployment CMD -h'.`
const
defaultShowFormat
=
`Name: {{.Name}}
const
defaultShowFormat
=
`Name: {{.Name}}
Status: {{.State.Status}}
Status: {{.State.Status}}
{{with .State.Errors}}Errors:
{{with .State.Errors}}Errors:
...
@@ -41,9 +52,10 @@ func init() {
...
@@ -41,9 +52,10 @@ func init() {
func
deploymentCommands
()
cli
.
Command
{
func
deploymentCommands
()
cli
.
Command
{
return
cli
.
Command
{
return
cli
.
Command
{
// Names following form prescribed here: http://is.gd/QUSEOF
// Names following form prescribed here: http://is.gd/QUSEOF
Name
:
"deployment"
,
Name
:
"deployment"
,
Aliases
:
[]
string
{
"dep"
},
Aliases
:
[]
string
{
"dep"
},
Usage
:
"Perform deployment-centered operations."
,
Usage
:
"Perform deployment-centered operations."
,
Description
:
deploymentDesc
,
Subcommands
:
[]
cli
.
Command
{
Subcommands
:
[]
cli
.
Command
{
{
{
Name
:
"config"
,
Name
:
"config"
,
...
...
cmd/helm/helm.go
View file @
c225ab8e
...
@@ -25,6 +25,28 @@ import (
...
@@ -25,6 +25,28 @@ import (
"github.com/kubernetes/helm/pkg/version"
"github.com/kubernetes/helm/pkg/version"
)
)
const
desc
=
`Helm: the package and deployment manager for Kubernetes
Helm is a tool for packaging, deploying, and managing Kubernetes
applications. It has a client component (this tool) and several in-cluster
components.
Before you can use Helm to manage applications, you must install the
in-cluster components into the target Kubernetes cluster:
$ helm server install
Once the in-cluster portion is running, you can use 'helm deploy' to
deploy a new application:
$ helm deploy CHARTNAME
For more information on Helm commands, you can use the following tools:
$ helm help # top-level help
$ helm CMD --help # help for a particular command or set of commands
`
var
commands
[]
cli
.
Command
var
commands
[]
cli
.
Command
func
init
()
{
func
init
()
{
...
@@ -41,7 +63,7 @@ func main() {
...
@@ -41,7 +63,7 @@ func main() {
app
:=
cli
.
NewApp
()
app
:=
cli
.
NewApp
()
app
.
Name
=
"helm"
app
.
Name
=
"helm"
app
.
Version
=
version
.
Version
app
.
Version
=
version
.
Version
app
.
Usage
=
`Deploy and manage packages.`
app
.
Usage
=
desc
app
.
Commands
=
commands
app
.
Commands
=
commands
// TODO: make better
// TODO: make better
...
...
cmd/helm/repository.go
View file @
c225ab8e
...
@@ -32,11 +32,23 @@ func init() {
...
@@ -32,11 +32,23 @@ func init() {
const
chartRepoPath
=
"repositories"
const
chartRepoPath
=
"repositories"
const
repoDesc
=
`Helm repositories store Helm charts.
The repository commands are used to manage which Helm repositories Helm may
use as a source for Charts. The repositories are accessed by in-cluster Helm
components.
To list the repositories that your server knows about, use 'helm repo list'.
For more details, use 'helm repo CMD -h'.
`
func
repoCommands
()
cli
.
Command
{
func
repoCommands
()
cli
.
Command
{
return
cli
.
Command
{
return
cli
.
Command
{
Name
:
"repository"
,
Name
:
"repository"
,
Aliases
:
[]
string
{
"repo"
},
Aliases
:
[]
string
{
"repo"
},
Usage
:
"Perform chart repository operations."
,
Usage
:
"Perform chart repository operations."
,
Description
:
repoDesc
,
Subcommands
:
[]
cli
.
Command
{
Subcommands
:
[]
cli
.
Command
{
{
{
Name
:
"add"
,
Name
:
"add"
,
...
...
cmd/helm/server.go
View file @
c225ab8e
...
@@ -37,6 +37,18 @@ func dmCmd() cli.Command {
...
@@ -37,6 +37,18 @@ func dmCmd() cli.Command {
return
cli
.
Command
{
return
cli
.
Command
{
Name
:
"server"
,
Name
:
"server"
,
Usage
:
"Manage Helm server-side components"
,
Usage
:
"Manage Helm server-side components"
,
Description
:
`Server commands manage the in-cluster portion of Helm.
Helm has several components that run inside of Kubernetes. Before Helm can
be used to install and manage packages, it must be installed into the
Kubernetes cluster in which packages will be installed.
The 'helm server' commands rely upon a properly configured 'kubectl' to
communicate with the Kubernetes cluster. To verify that your 'kubectl'
client is pointed to the correct cluster, use 'kubectl cluster-info'.
Use 'helm server install' to install the in-cluster portion of Helm.
`
,
Subcommands
:
[]
cli
.
Command
{
Subcommands
:
[]
cli
.
Command
{
{
{
Name
:
"install"
,
Name
:
"install"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment