diff --git a/cmd/list.go b/cmd/list.go index ae57a5f..c0f2c07 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -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, } diff --git a/cmd/root.go b/cmd/root.go index 8cdd222..1143216 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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) { }, diff --git a/cmd/version.go b/cmd/version.go index 659ee83..8f45068 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -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) {