feat: add plural alias of service command (#670)

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
This commit is contained in:
Andrew Rynhard 2019-05-18 09:17:09 -07:00 committed by GitHub
parent 54168cef1c
commit 496bb83078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,9 +21,10 @@ import (
// serviceCmd represents the service command
var serviceCmd = &cobra.Command{
Use: "service [<id>]",
Short: "Retrieve the state of a service (or all services)",
Long: ``,
Use: "service [<id>]",
Aliases: []string{"services"},
Short: "Retrieve the state of a service (or all services)",
Long: ``,
Run: func(cmd *cobra.Command, args []string) {
if len(args) > 1 {
helpers.Should(cmd.Usage())