mirror of https://github.com/kubernetes/kops.git
parent
b604917142
commit
17b3fa36eb
|
|
@ -21,6 +21,11 @@ import (
|
|||
"github.com/spf13/cobra/doc"
|
||||
)
|
||||
|
||||
const fileHeader = `
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
`
|
||||
|
||||
type GenHelpDocsCmd struct {
|
||||
cobraCommand *cobra.Command
|
||||
OutDir string
|
||||
|
|
@ -55,5 +60,9 @@ func (c *GenHelpDocsCmd) Run() error {
|
|||
for _, c := range rootCommand.cobraCommand.Commands() {
|
||||
c.Flag("state").DefValue = ""
|
||||
}
|
||||
return doc.GenMarkdownTree(rootCommand.cobraCommand, c.OutDir)
|
||||
|
||||
linkHandler := func(link string) string { return link }
|
||||
filePrepender := func(filname string) string { return fileHeader }
|
||||
|
||||
return doc.GenMarkdownTreeCustom(rootCommand.cobraCommand, c.OutDir, filePrepender, linkHandler)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops
|
||||
|
||||
kops is Kubernetes ops.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops completion
|
||||
|
||||
Output shell completion code for the given shell (bash or zsh).
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops create
|
||||
|
||||
Create a resource by command line, filename or stdin.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops create cluster
|
||||
|
||||
Create a Kubernetes cluster.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops create instancegroup
|
||||
|
||||
Create an instancegroup.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops create secret
|
||||
|
||||
Create a secret.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops create secret sshpublickey
|
||||
|
||||
Create a ssh public key.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops delete
|
||||
|
||||
Delete clusters,instancegroups, or secrets.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops delete cluster
|
||||
|
||||
Delete a cluster.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops delete instancegroup
|
||||
|
||||
Delete instancegroup
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops delete secret
|
||||
|
||||
Delete a secret
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops describe
|
||||
|
||||
Describe a resource.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops describe secrets
|
||||
|
||||
Describe a cluster secret
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops edit
|
||||
|
||||
Edit clusters and other resources.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops edit cluster
|
||||
|
||||
Edit cluster.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops edit federation
|
||||
|
||||
Edit federation.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops edit instancegroup
|
||||
|
||||
Edit instancegroup.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops export
|
||||
|
||||
Export configuration.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops export kubecfg
|
||||
|
||||
Export kubecfg.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops get
|
||||
|
||||
Get one or many resources.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops get clusters
|
||||
|
||||
Get one or many clusters.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops get federations
|
||||
|
||||
Get federation.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops get instancegroups
|
||||
|
||||
Get one or many instancegroups
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops get secrets
|
||||
|
||||
Get one or many secrets.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops import
|
||||
|
||||
Import a cluster.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops import cluster
|
||||
|
||||
Import a cluster.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops replace
|
||||
|
||||
Replace cluster resources.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops rolling-update
|
||||
|
||||
Rolling update a cluster.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops rolling-update cluster
|
||||
|
||||
Rolling update a cluster.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops toolbox
|
||||
|
||||
Misc infrequently used commands.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops toolbox convert-imported
|
||||
|
||||
Convert an imported cluster into a kops cluster.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops toolbox dump
|
||||
|
||||
Dump cluster information
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops update
|
||||
|
||||
Update a cluster.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops update cluster
|
||||
|
||||
Update a cluster.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops update federation
|
||||
|
||||
Update federation cluster resources.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops upgrade
|
||||
|
||||
Upgrade a kubernetes cluster.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops upgrade cluster
|
||||
|
||||
Upgrade a kubernetes cluster.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops validate
|
||||
|
||||
Validate a kops cluster.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops validate cluster
|
||||
|
||||
Validate a kops cluster.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
<!--- This file is automatically generated by make gen-cli-docs; changes should be made in the go CLI command code (under cmd/kops) -->
|
||||
|
||||
## kops version
|
||||
|
||||
Print the kops version information.
|
||||
|
|
|
|||
Loading…
Reference in New Issue