Skip to content

Commit

Permalink
feat: add case example
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudingcity committed Jul 25, 2021
1 parent 9f14a08 commit e4a93fd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/case.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

var CamelCaseCmd = &cobra.Command{
Use: "camel-case [text]",
Short: "Coverts string to camel case",
Short: "Coverts string to camel case (fooBar)",
Args: cobra.ExactArgs(1),
DisableFlagsInUseLine: true,
Run: func(cmd *cobra.Command, args []string) {
Expand All @@ -19,7 +19,7 @@ var CamelCaseCmd = &cobra.Command{

var KebabCaseCmd = &cobra.Command{
Use: "kebab-case [text]",
Short: "Coverts string to kebab case",
Short: "Coverts string to kebab case (foo-bar)",
Args: cobra.ExactArgs(1),
DisableFlagsInUseLine: true,
Run: func(cmd *cobra.Command, args []string) {
Expand All @@ -29,7 +29,7 @@ var KebabCaseCmd = &cobra.Command{

var LowerCaseCmd = &cobra.Command{
Use: "lower-case [text]",
Short: "Coverts string to lower case",
Short: "Coverts string to lower case (foo bar)",
Args: cobra.ExactArgs(1),
DisableFlagsInUseLine: true,
Run: func(cmd *cobra.Command, args []string) {
Expand All @@ -39,7 +39,7 @@ var LowerCaseCmd = &cobra.Command{

var SnakeCaseCmd = &cobra.Command{
Use: "snake-case [text]",
Short: "Coverts string to snake case",
Short: "Coverts string to snake case (foo_bar)",
Args: cobra.ExactArgs(1),
DisableFlagsInUseLine: true,
Run: func(cmd *cobra.Command, args []string) {
Expand All @@ -49,7 +49,7 @@ var SnakeCaseCmd = &cobra.Command{

var StartCaseCmd = &cobra.Command{
Use: "start-case [text]",
Short: "Coverts string to start case",
Short: "Coverts string to start case (Foo Bar)",
Args: cobra.ExactArgs(1),
DisableFlagsInUseLine: true,
Run: func(cmd *cobra.Command, args []string) {
Expand All @@ -59,7 +59,7 @@ var StartCaseCmd = &cobra.Command{

var UpperCaseCmd = &cobra.Command{
Use: "upper-case [text]",
Short: "Coverts string to upper case",
Short: "Coverts string to upper case (FOO BAR)",
Args: cobra.ExactArgs(1),
DisableFlagsInUseLine: true,
Run: func(cmd *cobra.Command, args []string) {
Expand Down

0 comments on commit e4a93fd

Please sign in to comment.