Skip to content

Commit

Permalink
Add descriptions to subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
waltervargas committed Dec 11, 2020
1 parent e26dda6 commit 4533a3f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
9 changes: 2 additions & 7 deletions cmd/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,8 @@ import (
// awsCmd represents the aws command
var awsCmd = &cobra.Command{
Use: "aws",
Short: "A brief description of your command",
Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
Short: "A collection of subcommands to deal with AWS",
Long: "A collection of subcommands to deal with AWS",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("aws called")
},
Expand Down
7 changes: 2 additions & 5 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,8 @@ var cfgFile string
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "ewcli",
Short: "To make my life easier",
Long: `Initially to automate some regular tasks toward AWS`,
// Uncomment the following line if your bare application
// has an action associated with it:
// Run: func(cmd *cobra.Command, args []string) { },
Short: "ewcli provides subcommands to deal with day to day SRE/DevOps tasks",
Long: `ewcli provides subcommands to deal with day to day SRE/DevOps tasks`,
}

// Execute adds all child commands to the root command and sets flags appropriately.
Expand Down
9 changes: 2 additions & 7 deletions cmd/saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,8 @@ import (
// samlCmd represents the saml command
var samlCmd = &cobra.Command{
Use: "saml",
Short: "A brief description of your command",
Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
Short: "aws saml subcommand deals with AWS IAM AssumeRole with SAML",
Long: `aws saml subcommand deals with AWS IAM AssumeRole with SAML`,
// Run: func(cmd *cobra.Command, args []string) {
// fmt.Println("saml called")
// },
Expand Down

0 comments on commit 4533a3f

Please sign in to comment.