mirror of
https://github.com/elyby/chrly.git
synced 2024-12-23 13:40:11 +05:30
Fix commands descriptions
This commit is contained in:
parent
055f3ce6c0
commit
8dd6a581a9
@ -13,8 +13,8 @@ import (
|
|||||||
var cfgFile string
|
var cfgFile string
|
||||||
|
|
||||||
var RootCmd = &cobra.Command{
|
var RootCmd = &cobra.Command{
|
||||||
Use: "",
|
Use: "chrly",
|
||||||
Short: "Nothing here",
|
Short: "Implementation of Minecraft skins system server",
|
||||||
Version: bootstrap.GetVersion(),
|
Version: bootstrap.GetVersion(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
var serveCmd = &cobra.Command{
|
var serveCmd = &cobra.Command{
|
||||||
Use: "serve",
|
Use: "serve",
|
||||||
Short: "Runs the system server skins",
|
Short: "Starts http handler for the skins system",
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
logger, err := bootstrap.CreateLogger(viper.GetString("statsd.addr"), viper.GetString("sentry.dsn"))
|
logger, err := bootstrap.CreateLogger(viper.GetString("statsd.addr"), viper.GetString("sentry.dsn"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -12,12 +12,12 @@ import (
|
|||||||
|
|
||||||
var tokenCmd = &cobra.Command{
|
var tokenCmd = &cobra.Command{
|
||||||
Use: "token",
|
Use: "token",
|
||||||
Short: "API tokens operations",
|
Short: "API tokens manipulation",
|
||||||
}
|
}
|
||||||
|
|
||||||
var createCmd = &cobra.Command{
|
var createCmd = &cobra.Command{
|
||||||
Use: "create",
|
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) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
jwtAuth := &auth.JwtAuth{}
|
jwtAuth := &auth.JwtAuth{}
|
||||||
for {
|
for {
|
||||||
@ -43,7 +43,7 @@ var createCmd = &cobra.Command{
|
|||||||
|
|
||||||
var resetCmd = &cobra.Command{
|
var resetCmd = &cobra.Command{
|
||||||
Use: "reset",
|
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) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
if !prompt.Confirm("Do you really want to invalidate all exists tokens?") {
|
if !prompt.Confirm("Do you really want to invalidate all exists tokens?") {
|
||||||
fmt.Println("Aboart.")
|
fmt.Println("Aboart.")
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
var versionCmd = &cobra.Command{
|
var versionCmd = &cobra.Command{
|
||||||
Use: "version",
|
Use: "version",
|
||||||
Short: "Show the Minecraft Skinsystem version information",
|
Short: "Show the Chrly version information",
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
fmt.Printf("Version: %s\n", bootstrap.GetVersion())
|
fmt.Printf("Version: %s\n", bootstrap.GetVersion())
|
||||||
fmt.Printf("Go version: %s\n", runtime.Version())
|
fmt.Printf("Go version: %s\n", runtime.Version())
|
||||||
|
Loading…
Reference in New Issue
Block a user