From 8dd6a581a9b6fc26ef0c55cbd9133d2fa7932aa4 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Wed, 14 Feb 2018 23:49:22 +0300 Subject: [PATCH] Fix commands descriptions --- cmd/root.go | 4 ++-- cmd/serve.go | 2 +- cmd/token.go | 6 +++--- cmd/version.go | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index e78a97e..8d65df6 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -13,8 +13,8 @@ import ( var cfgFile string var RootCmd = &cobra.Command{ - Use: "", - Short: "Nothing here", + Use: "chrly", + Short: "Implementation of Minecraft skins system server", Version: bootstrap.GetVersion(), } diff --git a/cmd/serve.go b/cmd/serve.go index f73769a..29f2cea 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -16,7 +16,7 @@ import ( var serveCmd = &cobra.Command{ Use: "serve", - Short: "Runs the system server skins", + Short: "Starts http handler for the skins system", Run: func(cmd *cobra.Command, args []string) { logger, err := bootstrap.CreateLogger(viper.GetString("statsd.addr"), viper.GetString("sentry.dsn")) if err != nil { diff --git a/cmd/token.go b/cmd/token.go index a26f681..70c8724 100644 --- a/cmd/token.go +++ b/cmd/token.go @@ -12,12 +12,12 @@ import ( var tokenCmd = &cobra.Command{ Use: "token", - Short: "API tokens operations", + Short: "API tokens manipulation", } var createCmd = &cobra.Command{ Use: "create", - Short: "Create the new token, that allows interacting with Ely.by Skinsystem API", + Short: "Creates a new token, which allows to interact with Chrly API", Run: func(cmd *cobra.Command, args []string) { jwtAuth := &auth.JwtAuth{} for { @@ -43,7 +43,7 @@ var createCmd = &cobra.Command{ var resetCmd = &cobra.Command{ Use: "reset", - Short: "Regenerate the secret key, that invalidate all tokens", + Short: "Re-creates the secret key, which invalidate all tokens", Run: func(cmd *cobra.Command, args []string) { if !prompt.Confirm("Do you really want to invalidate all exists tokens?") { fmt.Println("Aboart.") diff --git a/cmd/version.go b/cmd/version.go index cd08f82..6b50b39 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -10,7 +10,7 @@ import ( var versionCmd = &cobra.Command{ Use: "version", - Short: "Show the Minecraft Skinsystem version information", + Short: "Show the Chrly version information", Run: func(cmd *cobra.Command, args []string) { fmt.Printf("Version: %s\n", bootstrap.GetVersion()) fmt.Printf("Go version: %s\n", runtime.Version())