github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/command/acl.go (about) 1 package command 2 3 import ( 4 "strings" 5 6 "github.com/mitchellh/cli" 7 ) 8 9 type ACLCommand struct { 10 Meta 11 } 12 13 func (f *ACLCommand) Help() string { 14 helpText := ` 15 Usage: 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 30 func (f *ACLCommand) Synopsis() string { 31 return "Interact with ACL policies and tokens" 32 } 33 34 func (f *ACLCommand) Name() string { return "acl" } 35 36 func (f *ACLCommand) Run(args []string) int { 37 return cli.RunResultHelp 38 }