2017-09-11 17:46:17 +00:00
|
|
|
package command
|
|
|
|
|
2017-09-15 20:11:37 +00:00
|
|
|
import (
|
|
|
|
"strings"
|
|
|
|
|
|
|
|
"github.com/mitchellh/cli"
|
|
|
|
)
|
2017-09-11 17:46:17 +00:00
|
|
|
|
|
|
|
type ACLCommand struct {
|
|
|
|
Meta
|
|
|
|
}
|
|
|
|
|
|
|
|
func (f *ACLCommand) Help() string {
|
2017-09-15 20:11:37 +00:00
|
|
|
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)
|
2017-09-11 17:46:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (f *ACLCommand) Synopsis() string {
|
|
|
|
return "Interact with ACL policies and tokens"
|
|
|
|
}
|
|
|
|
|
|
|
|
func (f *ACLCommand) Run(args []string) int {
|
|
|
|
return cli.RunResultHelp
|
|
|
|
}
|