Fix example scope id for role grants (#4348)

* Rename example scope id

* revert newline at eof
pull/4326/head
Yong Zhang 2 years ago committed by GitHub
parent acabfd7f2c
commit e34d3bb415
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -147,7 +147,7 @@ func (c *Command) extraHelpFunc(helpMap map[string]func() string) string {
"",
` Adds grant scopes to a role given its ID. The "grant-scope-id" flag can be specified multiple times. Example:`,
"",
` $ boundary roles add-grant-scopes -id o_1234567890 -grant-scope-id "this" -grant-scope-id "children"`,
` $ boundary roles add-grant-scopes -id r_1234567890 -grant-scope-id "this" -grant-scope-id "children"`,
"",
"",
})
@ -158,7 +158,7 @@ func (c *Command) extraHelpFunc(helpMap map[string]func() string) string {
"",
` Sets the complete set of grant scopes on a role given its ID. The "grant-scope-id" flag can be specified multiple times. Example:`,
"",
` $ boundary roles set-grant-scopes -id o_1234567890 -grant-scope-id "this" -grant-scope-id "children"`,
` $ boundary roles set-grant-scopes -id r_1234567890 -grant-scope-id "this" -grant-scope-id "children"`,
"",
"",
})
@ -169,7 +169,7 @@ func (c *Command) extraHelpFunc(helpMap map[string]func() string) string {
"",
` Removes grant scopes from a role given its ID. The "grant-scope-id" flags can be specified multiple times. Example:`,
"",
` $ boundary roles remove-grant-scopes -id o_1234567890 -grant-scope-id "this" -grant-scope-id "children"`,
` $ boundary roles remove-grant-scopes -id r_1234567890 -grant-scope-id "this" -grant-scope-id "children"`,
"",
"",
})

@ -14,7 +14,7 @@ You can specify multiple grant scopes per role.
## Example
This example adds a grant to a role with the ID `o_1234567890` in the current scope and any children scopes:
This example adds a grant to a role with the ID `r_1234567890` in the current scope and any children scopes:
```shell-session
$ boundary roles add-grant-scopes -id r_1234567890 -grant-scope-id "this" -grant-scope-id "children"

Loading…
Cancel
Save