Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Add capitalization to commands (#589)
Browse files Browse the repository at this point in the history
The capitlization bothered me a tiny bit, so I created this PR. Also
reduces the "apply" short description to one section without a `.` in
order to similar with the other commands.
  • Loading branch information
cdrage authored Feb 8, 2018
1 parent b62112e commit 1f0908a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
// Represents the "apply" command
var applyCmd = &cobra.Command{
Use: "apply",
Short: "Apply a configuration to a resource on the Kubernetes cluster. This resource will be created if it doesn't exist yet.",
Short: "Apply (or create if it does not exist) a configuration to a resource on the Kubernetes cluster",
Run: func(cmd *cobra.Command, args []string) {
if err := ifFilesPassed(InputFiles); err != nil {
fmt.Println(err)
Expand Down
2 changes: 1 addition & 1 deletion cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var PushImage, s2iBuild bool

var buildCmd = &cobra.Command{
Use: "build",
Short: "build application image",
Short: "Build application image",
Run: func(cmd *cobra.Command, args []string) {
if DockerImage == "" {
fmt.Println("Please specify the container image name using flag '--image' or '-i'")
Expand Down
2 changes: 1 addition & 1 deletion cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var generateCmd = &cobra.Command{
}

func init() {
generateCmd.Flags().StringArrayVarP(&InputFiles, "files", "f", []string{}, "input files")
generateCmd.Flags().StringArrayVarP(&InputFiles, "files", "f", []string{}, "Input files")
generateCmd.MarkFlagRequired("files")
RootCmd.AddCommand(generateCmd)
}
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ func Execute() {

// Initialize all flags
func init() {
RootCmd.PersistentFlags().BoolVarP(&GlobalVerbose, "verbose", "v", false, "verbose output")
RootCmd.PersistentFlags().BoolVarP(&GlobalVerbose, "verbose", "v", false, "Verbose output")
}

0 comments on commit 1f0908a

Please sign in to comment.