Merge pull request #1580 from frodopwns/issue-1550-better-desc

WIP: Improve command descriptions
This commit is contained in:
Kris Nova 2017-01-21 21:00:41 -07:00 committed by GitHub
commit 0ec11b20f1
13 changed files with 16 additions and 16 deletions

View File

@ -7,7 +7,7 @@ import (
// createCmd represents the create command // createCmd represents the create command
var createCmd = &cobra.Command{ var createCmd = &cobra.Command{
Use: "create", Use: "create",
Short: "create resources", Short: "Create a resource by filename or stdin.",
Long: `Create resources`, Long: `Create resources`,
} }

View File

@ -7,8 +7,8 @@ import (
// deleteCmd represents the delete command // deleteCmd represents the delete command
var deleteCmd = &cobra.Command{ var deleteCmd = &cobra.Command{
Use: "delete", Use: "delete",
Short: "delete clusters", Short: "Delete clusters and other resources.",
Long: `Delete clusters`, Long: `Delete resources, such as clusters, instance groups, and secrets.'`,
} }
func init() { func init() {

View File

@ -12,7 +12,7 @@ type DescribeCmd struct {
var describeCmd = DescribeCmd{ var describeCmd = DescribeCmd{
cobraCommand: &cobra.Command{ cobraCommand: &cobra.Command{
Use: "describe", Use: "describe",
Short: "describe objects", Short: "Get more information about cloud resources.",
}, },
} }

View File

@ -7,7 +7,7 @@ import (
// editCmd represents the edit command // editCmd represents the edit command
var editCmd = &cobra.Command{ var editCmd = &cobra.Command{
Use: "edit", Use: "edit",
Short: "edit items", Short: "Edit clusters and other resrouces.",
} }
func init() { func init() {

View File

@ -7,7 +7,7 @@ import (
// exportCmd represents the export command // exportCmd represents the export command
var exportCmd = &cobra.Command{ var exportCmd = &cobra.Command{
Use: "export", Use: "export",
Short: "export clusters/kubecfg", Short: "Exports a kubecfg for target cluster.",
Long: `export clusters/kubecfg`, Long: `export clusters/kubecfg`,
} }

View File

@ -15,7 +15,7 @@ var getCmd = GetCmd{
cobraCommand: &cobra.Command{ cobraCommand: &cobra.Command{
Use: "get", Use: "get",
SuggestFor: []string{"list"}, SuggestFor: []string{"list"},
Short: "list or get objects", Short: "List all instances of a resource.",
Long: `list or get objects`, Long: `list or get objects`,
}, },
} }

View File

@ -7,8 +7,8 @@ import (
// importCmd represents the import command // importCmd represents the import command
var importCmd = &cobra.Command{ var importCmd = &cobra.Command{
Use: "import", Use: "import",
Short: "import clusters", Short: "Import existing resources into the state store.",
Long: `import clusters`, Long: `Import existing resources, such as clusters into the state store.`,
} }
func init() { func init() {

View File

@ -12,7 +12,7 @@ type RollingUpdateCmd struct {
var rollingUpdateCommand = RollingUpdateCmd{ var rollingUpdateCommand = RollingUpdateCmd{
cobraCommand: &cobra.Command{ cobraCommand: &cobra.Command{
Use: "rolling-update", Use: "rolling-update",
Short: "rolling update clusters", Short: "Initiate rolling updates on clusters.",
Long: `rolling update clusters`, Long: `rolling update clusters`,
}, },
} }

View File

@ -7,8 +7,8 @@ import (
// secretsCmd represents the secrets command // secretsCmd represents the secrets command
var secretsCmd = &cobra.Command{ var secretsCmd = &cobra.Command{
Use: "secrets", Use: "secrets",
Short: "Manage secrets & keys", Short: "Manage secrets & keys.",
Long: `Manage secrets & keys`, Long: `Manage secrets & keys.`,
} }
func init() { func init() {

View File

@ -7,7 +7,7 @@ import (
// toolboxCmd represents the toolbox command // toolboxCmd represents the toolbox command
var toolboxCmd = &cobra.Command{ var toolboxCmd = &cobra.Command{
Use: "toolbox", Use: "toolbox",
Short: "Misc infrequently used commands", Short: "Misc infrequently used commands.",
} }
func init() { func init() {

View File

@ -7,7 +7,7 @@ import (
// updateCmd represents the create command // updateCmd represents the create command
var updateCmd = &cobra.Command{ var updateCmd = &cobra.Command{
Use: "update", Use: "update",
Short: "update clusters", Short: "Creates or updates cloud resources to match cluster spec.",
Long: `Update clusters`, Long: `Update clusters`,
} }

View File

@ -7,7 +7,7 @@ import (
// upgradeCmd represents the upgrade command // upgradeCmd represents the upgrade command
var upgradeCmd = &cobra.Command{ var upgradeCmd = &cobra.Command{
Use: "upgrade", Use: "upgrade",
Short: "upgrade clusters", Short: "Automates checking for and applying Kubernetes updates.",
Long: `upgrade clusters`, Long: `upgrade clusters`,
} }

View File

@ -13,7 +13,7 @@ type VersionCmd struct {
var versionCmd = VersionCmd{ var versionCmd = VersionCmd{
cobraCommand: &cobra.Command{ cobraCommand: &cobra.Command{
Use: "version", Use: "version",
Short: "Print the client version information", Short: "Print the client version information.",
}, },
} }