Skip to content

Commit

Permalink
fix: update grant examples (#1222)
Browse files Browse the repository at this point in the history
update the grant examples to use the new syntax

Co-authored-by: Patrick Devine <patrick@infrahq.com>
  • Loading branch information
pdevine and pdevine authored Mar 17, 2022
1 parent 3a53c5d commit 45617cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cmd/grants.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ func newGrantAddCmd() *cobra.Command {
Short: "Grant access to a destination",
Example: `
# Grant user admin access to a cluster
$ infra access grant -u suzie@acme.com -r admin kubernetes.production
$ infra grants add -u suzie@acme.com -r admin kubernetes.production
# Grant group admin access to a namespace
$ infra access grant -g Engineering -r admin kubernetes.production.default
$ infra grants add -g Engineering -r admin kubernetes.production.default
# Grant user admin access to infra itself
$ infra access grant -u admin@acme.com -r admin infra
$ infra grants add -u admin@acme.com -r admin infra
`,
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down

0 comments on commit 45617cc

Please sign in to comment.