Fix example scope id for role grants (#4348)

* Rename example scope id

* revert newline at eof
This commit is contained in:
Yong Zhang authored and GitHub committed 2024-02-02 17:35:05 -08:00
1 parent acabfd7f2c
commit e34d3bb415
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -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"