Skip to content

Commit

Permalink
fix: bash-completion to stdout + typos in usage (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvoros-form3 committed Jul 19, 2022
1 parent 1a4b516 commit 5fb8384
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Usage:
Available Commands:
analysis Analyze RBAC permissions and highlight overly permissive principals, risky permissions, etc.
auditgen Generate RBAC policy from Kubernetes audit events
bash-completion Generate bash completion. source < (rbac-too bash-completion)
bash-completion Generate bash completion. source <(rbac-tool bash-completion)
generate Generate Role or ClusterRole and reduce the use of wildcards
help Help about any command
lookup RBAC Lookup by subject (user/group/serviceaccount) name
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ func RbacGenCmd() *cobra.Command {

var genBashCompletionCmd = &cobra.Command{
Use: "bash-completion",
Short: "Generate bash completion. source < (rbac-too bash-completion)",
Long: "Generate bash completion. source < (rbac-too bash-completion)",
Short: "Generate bash completion. source <(rbac-tool bash-completion)",
Long: "Generate bash completion. source <(rbac-tool bash-completion)",
Run: func(cmd *cobra.Command, args []string) {
out := new(bytes.Buffer)
_ = rootCmd.GenBashCompletion(out)
println(out.String())
fmt.Println(out.String())
},
}

Expand Down

0 comments on commit 5fb8384

Please sign in to comment.