mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
cli: update acl bootstrap help to match docs (#18961)
See https://developer.hashicorp.com/nomad/docs/commands/acl/bootstrap
This commit is contained in:
3
.changelog/18961.txt
Normal file
3
.changelog/18961.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:improvement
|
||||
cli: Added help text to `acl bootstrap` about reading the initial token from a file
|
||||
```
|
||||
@@ -21,10 +21,20 @@ type ACLBootstrapCommand struct {
|
||||
|
||||
func (c *ACLBootstrapCommand) Help() string {
|
||||
helpText := `
|
||||
Usage: nomad acl bootstrap [options]
|
||||
Usage: nomad acl bootstrap [options] [<path>]
|
||||
|
||||
Bootstrap is used to bootstrap the ACL system and get an initial token.
|
||||
|
||||
The acl bootstrap command can be used in two ways:
|
||||
|
||||
- If you provide no arguments it will return a system generated bootstrap
|
||||
token.
|
||||
|
||||
- If you would like to provide an operator generated token it is possible to
|
||||
provide the token using a file located at <path>. The Token can be read
|
||||
from stdin by setting <path> to "-". Please make sure you secure this token
|
||||
in an appropriate manner as it could be written to your terminal history.
|
||||
|
||||
General Options:
|
||||
|
||||
` + generalOptionsUsage(usageOptsDefault|usageOptsNoNamespace) + `
|
||||
|
||||
Reference in New Issue
Block a user