diff --git a/cmd/server/commands.go b/cmd/server/commands.go index a3028123..ff94d5c5 100644 --- a/cmd/server/commands.go +++ b/cmd/server/commands.go @@ -20,7 +20,7 @@ func generateKeys(c *cli.Context) error { apiKey := utils.NewGuid(utils.APIKeyPrefix) secret := utils.RandomSecret() fmt.Println("API Key: ", apiKey) - fmt.Println("Secret Key: ", secret) + fmt.Println("API Secret: ", secret) return nil } diff --git a/cmd/server/main.go b/cmd/server/main.go index fa8eca14..b70d111e 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -91,7 +91,7 @@ func main() { Commands: []*cli.Command{ { Name: "generate-keys", - Usage: "generates a pair of API & secret keys", + Usage: "generates an API key and secret pair", Action: generateKeys, }, { diff --git a/pkg/config/config.go b/pkg/config/config.go index dfa33c36..b1f3288a 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -213,7 +213,7 @@ func (conf *Config) updateFromCLI(c *cli.Context) error { } if c.IsSet("keys") { if err := conf.unmarshalKeys(c.String("keys")); err != nil { - return errors.New("Could not parse keys, it needs to be \"key: secret\", one per line") + return errors.New("Could not parse keys, it needs to be exactly, \"key: secret\", including the space") } } if c.IsSet("redis-host") {