| ... | ... |
@@ -51,7 +51,7 @@ func NewCommandManageNode(f *clientcmd.Factory, commandName, fullName string, ou |
| 51 | 51 |
|
| 52 | 52 |
cmd := &cobra.Command{
|
| 53 | 53 |
Use: commandName, |
| 54 |
- Short: "Manage node operations: schedulable, evacuate, list-pods", |
|
| 54 |
+ Short: "Manage nodes - list pods, evacuate, or mark ready", |
|
| 55 | 55 |
Long: manageNodeLong, |
| 56 | 56 |
Example: fmt.Sprintf(manageNodeExample, fullName), |
| 57 | 57 |
Run: func(c *cobra.Command, args []string) {
|
| ... | ... |
@@ -30,8 +30,8 @@ func NewCmdWhoCan(name, fullName string, f *clientcmd.Factory, out io.Writer) *c |
| 30 | 30 |
|
| 31 | 31 |
cmd := &cobra.Command{
|
| 32 | 32 |
Use: "who-can VERB RESOURCE", |
| 33 |
- Short: "Indicates which users can perform the action on the resource.", |
|
| 34 |
- Long: `Indicates which users can perform the action on the resource.`, |
|
| 33 |
+ Short: "List who can perform the specified action on a resource", |
|
| 34 |
+ Long: "List who can perform the specified action on a resource", |
|
| 35 | 35 |
Run: func(cmd *cobra.Command, args []string) {
|
| 36 | 36 |
if err := options.complete(args); err != nil {
|
| 37 | 37 |
kcmdutil.CheckErr(kcmdutil.UsageError(cmd, err.Error())) |
| ... | ... |
@@ -43,7 +43,7 @@ func NewCmdPruneBuilds(f *clientcmd.Factory, parentName, name string, out io.Wri |
| 43 | 43 |
|
| 44 | 44 |
cmd := &cobra.Command{
|
| 45 | 45 |
Use: name, |
| 46 |
- Short: "Remove older completed and failed builds", |
|
| 46 |
+ Short: "Remove completed and failed builds", |
|
| 47 | 47 |
Long: fmt.Sprintf(buildsLongDesc, parentName, name), |
| 48 | 48 |
|
| 49 | 49 |
Run: func(cmd *cobra.Command, args []string) {
|
| ... | ... |
@@ -42,7 +42,7 @@ func NewCmdPruneDeployments(f *clientcmd.Factory, parentName, name string, out i |
| 42 | 42 |
|
| 43 | 43 |
cmd := &cobra.Command{
|
| 44 | 44 |
Use: name, |
| 45 |
- Short: "Remove older completed and failed deployments", |
|
| 45 |
+ Short: "Remove completed and failed deployments", |
|
| 46 | 46 |
Long: fmt.Sprintf(deploymentsLongDesc, parentName, name), |
| 47 | 47 |
|
| 48 | 48 |
Run: func(cmd *cobra.Command, args []string) {
|
| ... | ... |
@@ -47,7 +47,7 @@ func NewCmdPruneImages(f *clientcmd.Factory, parentName, name string, out io.Wri |
| 47 | 47 |
|
| 48 | 48 |
cmd := &cobra.Command{
|
| 49 | 49 |
Use: name, |
| 50 |
- Short: "Prune images", |
|
| 50 |
+ Short: "Remove unreferenced images", |
|
| 51 | 51 |
Long: fmt.Sprintf(imagesLongDesc, parentName, name), |
| 52 | 52 |
|
| 53 | 53 |
Run: func(cmd *cobra.Command, args []string) {
|
| ... | ... |
@@ -67,12 +67,12 @@ func NewCommandCLI(name, fullName string) *cobra.Command {
|
| 67 | 67 |
{
|
| 68 | 68 |
Message: "Basic Commands:", |
| 69 | 69 |
Commands: []*cobra.Command{
|
| 70 |
+ cmd.NewCmdTypes(fullName, f, out), |
|
| 70 | 71 |
loginCmd, |
| 71 | 72 |
cmd.NewCmdRequestProject("new-project", fullName+" new-project", fullName+" login", fullName+" project", f, out),
|
| 72 | 73 |
cmd.NewCmdNewApplication(fullName, f, out), |
| 73 | 74 |
cmd.NewCmdStatus(fullName, f, out), |
| 74 | 75 |
cmd.NewCmdProject(fullName+" project", f, out), |
| 75 |
- cmd.NewCmdTypes(fullName, f, out), |
|
| 76 | 76 |
}, |
| 77 | 77 |
}, |
| 78 | 78 |
{
|
| ... | ... |
@@ -31,7 +31,7 @@ const ( |
| 31 | 31 |
func NewCmdCancelBuild(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command {
|
| 32 | 32 |
cmd := &cobra.Command{
|
| 33 | 33 |
Use: "cancel-build BUILD", |
| 34 |
- Short: "Cancel a pending or running build.", |
|
| 34 |
+ Short: "Cancel a pending or running build", |
|
| 35 | 35 |
Long: cancelBuildLong, |
| 36 | 36 |
Example: fmt.Sprintf(cancelBuildExample, fullName), |
| 37 | 37 |
Run: func(cmd *cobra.Command, args []string) {
|
| ... | ... |
@@ -65,7 +65,7 @@ func NewCmdDeploy(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.C |
| 65 | 65 |
|
| 66 | 66 |
cmd := &cobra.Command{
|
| 67 | 67 |
Use: "deploy DEPLOYMENTCONFIG", |
| 68 |
- Short: "View, start and restart deployments.", |
|
| 68 |
+ Short: "View, start and restart deployments", |
|
| 69 | 69 |
Long: deployLong, |
| 70 | 70 |
Example: fmt.Sprintf(deployExample, fullName), |
| 71 | 71 |
Run: func(cmd *cobra.Command, args []string) {
|
| ... | ... |
@@ -60,7 +60,7 @@ func NewCmdEdit(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Com |
| 60 | 60 |
var filenames util.StringList |
| 61 | 61 |
cmd := &cobra.Command{
|
| 62 | 62 |
Use: "edit (RESOURCE/NAME | -f FILENAME)", |
| 63 |
- Short: "Edit a resource on the server and apply the update.", |
|
| 63 |
+ Short: "Edit a resource on the server", |
|
| 64 | 64 |
Long: editLong, |
| 65 | 65 |
Example: fmt.Sprintf(editExample, fullName), |
| 66 | 66 |
Run: func(cmd *cobra.Command, args []string) {
|
| ... | ... |
@@ -30,7 +30,7 @@ have tag and image information imported.` |
| 30 | 30 |
func NewCmdImportImage(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command {
|
| 31 | 31 |
cmd := &cobra.Command{
|
| 32 | 32 |
Use: "import-image IMAGESTREAM", |
| 33 |
- Short: "Imports tag and image information from an external Docker image repository.", |
|
| 33 |
+ Short: "Imports images from a Docker registry", |
|
| 34 | 34 |
Long: importImageLong, |
| 35 | 35 |
Example: fmt.Sprintf(importImageExample, fullName), |
| 36 | 36 |
Run: func(cmd *cobra.Command, args []string) {
|
| ... | ... |
@@ -50,7 +50,7 @@ func NewCmdRollback(fullName string, f *clientcmd.Factory, out io.Writer) *cobra |
| 50 | 50 |
|
| 51 | 51 |
cmd := &cobra.Command{
|
| 52 | 52 |
Use: "rollback DEPLOYMENT", |
| 53 |
- Short: "Revert part of an application back to a previous deployment.", |
|
| 53 |
+ Short: "Revert part of an application back to a previous deployment", |
|
| 54 | 54 |
Long: rollbackLong, |
| 55 | 55 |
Example: fmt.Sprintf(rollbackExample, fullName), |
| 56 | 56 |
Run: func(cmd *cobra.Command, args []string) {
|
| ... | ... |
@@ -49,7 +49,7 @@ func NewCmdStartBuild(fullName string, f *clientcmd.Factory, out io.Writer) *cob |
| 49 | 49 |
|
| 50 | 50 |
cmd := &cobra.Command{
|
| 51 | 51 |
Use: "start-build (BUILDCONFIG | --from-build=BUILD)", |
| 52 |
- Short: "Starts a new build from existing Build or BuildConfig", |
|
| 52 |
+ Short: "Starts a new build", |
|
| 53 | 53 |
Long: startBuildLong, |
| 54 | 54 |
Example: fmt.Sprintf(startBuildExample, fullName), |
| 55 | 55 |
Run: func(cmd *cobra.Command, args []string) {
|
| ... | ... |
@@ -89,7 +89,7 @@ func NewEdge(fullname, to string) *Edge {
|
| 89 | 89 |
func NewCmdBuildChain(f *clientcmd.Factory, parentName, name string) *cobra.Command {
|
| 90 | 90 |
cmd := &cobra.Command{
|
| 91 | 91 |
Use: fmt.Sprintf("%s [IMAGESTREAM:TAG | --all]", name),
|
| 92 |
- Short: "Output build dependencies of a specific ImageStream", |
|
| 92 |
+ Short: "Output build dependencies of a specific image stream", |
|
| 93 | 93 |
Long: buildChainLong, |
| 94 | 94 |
Example: buildChainExample, |
| 95 | 95 |
Run: func(cmd *cobra.Command, args []string) {
|
| ... | ... |
@@ -98,8 +98,8 @@ func NewCmdBuildChain(f *clientcmd.Factory, parentName, name string) *cobra.Comm |
| 98 | 98 |
}, |
| 99 | 99 |
} |
| 100 | 100 |
|
| 101 |
- cmd.Flags().Bool("all", false, "Build dependency trees for all ImageStreams")
|
|
| 102 |
- cmd.Flags().Bool("all-tags", false, "Build dependency trees for all tags of a specific ImageStream")
|
|
| 101 |
+ cmd.Flags().Bool("all", false, "Build dependency trees for all image streams")
|
|
| 102 |
+ cmd.Flags().Bool("all-tags", false, "Build dependency trees for all tags of a specific image stream")
|
|
| 103 | 103 |
cmd.Flags().StringP("output", "o", "json", "Output format of dependency tree(s)")
|
| 104 | 104 |
return cmd |
| 105 | 105 |
} |