Skip to content

Commit

Permalink
Merge pull request #15 from dtan4/update-command-description
Browse files Browse the repository at this point in the history
Update command description
  • Loading branch information
dtan4 authored Jan 10, 2017
2 parents d832647 + 765d03a commit b22356d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 21 deletions.
18 changes: 12 additions & 6 deletions cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,19 @@ var listOpts = struct {
// listCmd represents the list command
var listCmd = &cobra.Command{
Use: "list",
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:
Short: "List secrets",
Long: `List secrets
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.`,
$ k8sec list rails
NAME TYPE KEY VALUE
rails Opaque database-url "postgres://example.com:5432/dbname"
Show values as base64-encoded string:
$ k8sec list --base64 rails
NAME TYPE KEY VALUE
rails Opaque database-url cG9zdGdyZXM6Ly9leGFtcGxlLmNvbTo1NDMyL2RibmFtZQ==
`,
RunE: doList,
}

Expand Down
8 changes: 1 addition & 7 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,7 @@ var RootCmd = &cobra.Command{
SilenceUsage: true,
SilenceErrors: true,
Use: "k8sec",
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: "CLI tool to manage Kubernetes Secrets easily",
// Uncomment the following line if your bare application
// has an action associated with it:
// Run: func(cmd *cobra.Command, args []string) { },
Expand Down
10 changes: 2 additions & 8 deletions cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,8 @@ import (
// versionCmd represents the version command
var versionCmd = &cobra.Command{
Use: "version",
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.`,
Run: doVersion,
Short: "Print the version number of k8sec",
Run: doVersion,
}

func doVersion(cmd *cobra.Command, args []string) {
Expand Down

0 comments on commit b22356d

Please sign in to comment.