1package command
2
3import (
4	"strings"
5
6	"github.com/mitchellh/cli"
7)
8
9type ACLCommand struct {
10	Meta
11}
12
13func (f *ACLCommand) Help() string {
14	helpText := `
15Usage: nomad acl <subcommand> [options] [args]
16
17  This command groups subcommands for interacting with ACL policies and tokens.
18  Users can bootstrap Nomad's ACL system, create policies that restrict access,
19  and generate tokens from those policies.
20
21  Bootstrap ACLs:
22
23      $ nomad acl bootstrap
24
25  Please see the individual subcommand help for detailed usage information.
26`
27	return strings.TrimSpace(helpText)
28}
29
30func (f *ACLCommand) Synopsis() string {
31	return "Interact with ACL policies and tokens"
32}
33
34func (f *ACLCommand) Name() string { return "acl" }
35
36func (f *ACLCommand) Run(args []string) int {
37	return cli.RunResultHelp
38}
39