embed acl subcommands

This commit is contained in:
Chelsea Holland Komlo 2017-09-15 20:11:37 +00:00
parent 9d3104ca26
commit 972914b7ea
1 changed files with 13 additions and 2 deletions

View File

@ -1,13 +1,24 @@
package command
import "github.com/mitchellh/cli"
import (
"strings"
"github.com/mitchellh/cli"
)
type ACLCommand struct {
Meta
}
func (f *ACLCommand) Help() string {
return "This command is accessed by using one of the subcommands below."
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 {