open-nomad/command/acl.go
Chelsea Holland Komlo 972914b7ea embed acl subcommands
2017-09-15 20:11:37 +00:00

31 lines
521 B
Go

package command
import (
"strings"
"github.com/mitchellh/cli"
)
type ACLCommand struct {
Meta
}
func (f *ACLCommand) Help() string {
helpText := `
Usage: nomad acl <subcommand> [options]
Interact with ACL policies and tokens.
Run nomad acl <subcommand> with no arguments for help on that subcommand.
`
return strings.TrimSpace(helpText)
}
func (f *ACLCommand) Synopsis() string {
return "Interact with ACL policies and tokens"
}
func (f *ACLCommand) Run(args []string) int {
return cli.RunResultHelp
}