Skip to content

Commit

Permalink
Update help descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
minamijoyo committed Aug 21, 2016
1 parent b4e3f27 commit 82823cb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
8 changes: 1 addition & 7 deletions cmd/ec2.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ import (
// ec2Cmd represents the ec2 command
var ec2Cmd = &cobra.Command{
Use: "ec2",
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: "Manage EC2 resources",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("ec2 called")
},
Expand Down
1 change: 0 additions & 1 deletion cmd/ec2ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
var ec2lsCmd = &cobra.Command{
Use: "ls",
Short: "List EC2 instances",
Long: `List EC2 instances`,
Run: ec2.Ls,
}

Expand Down
8 changes: 1 addition & 7 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@ var cfgFile string
// RootCmd represents the base command when called without any subcommands
var RootCmd = &cobra.Command{
Use: "myaws",
Short: "A brief description of your application",
Long: `A longer description that spans multiple lines and likely contains
examples and usage of using your application. 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: "myaws is a simple command line tool for operating my aws resources",
}

// Execute adds all child commands to the root command sets flags appropriately.
Expand Down

0 comments on commit 82823cb

Please sign in to comment.