bugfix: typos in acl role commands (#15382)

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
This commit is contained in:
Piotr Kazmierczak
2022-11-25 10:28:33 +01:00
committed by GitHub
parent 8018dd0ee8
commit ecd454e15d
3 changed files with 5 additions and 2 deletions

3
.changelog/15382.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:bug
cli: corrected typos in ACL role create/delete CLI commands
```

View File

@@ -26,7 +26,7 @@ type ACLRoleCreateCommand struct {
// Help satisfies the cli.Command Help function. // Help satisfies the cli.Command Help function.
func (a *ACLRoleCreateCommand) Help() string { func (a *ACLRoleCreateCommand) Help() string {
helpText := ` helpText := `
Usage: nomad acl token create [options] Usage: nomad acl role create [options]
Create is used to create new ACL roles. Use requires a management token. Create is used to create new ACL roles. Use requires a management token.

View File

@@ -42,7 +42,7 @@ func (a *ACLRoleDeleteCommand) AutocompleteArgs() complete.Predictor { return co
func (a *ACLRoleDeleteCommand) Synopsis() string { return "Delete an existing ACL role" } func (a *ACLRoleDeleteCommand) Synopsis() string { return "Delete an existing ACL role" }
// Name returns the name of this command. // Name returns the name of this command.
func (a *ACLRoleDeleteCommand) Name() string { return "acl token delete" } func (a *ACLRoleDeleteCommand) Name() string { return "acl role delete" }
// Run satisfies the cli.Command Run function. // Run satisfies the cli.Command Run function.
func (a *ACLRoleDeleteCommand) Run(args []string) int { func (a *ACLRoleDeleteCommand) Run(args []string) int {