github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/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  }