We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faffbe3 commit 3703581Copy full SHA for 3703581
requiredRole.go renamed to required_role.go
@@ -21,7 +21,8 @@ import (
21
)
22
23
func requiredRole(buf *bytes.Buffer, cmd *cobra.Command) {
24
- if cmd.Annotations["requiredRole"] != "" {
25
- buf.WriteString("\nTo use this command, the requesting user or API key must have the " + cmd.Annotations["requiredRole"] + " role.\n")
+ if cmd.Annotations["requiredRole"] == "" {
+ return
26
}
27
+ buf.WriteString("\nTo use this command, the requesting user or API key must have the " + cmd.Annotations["requiredRole"] + " role.\n")
28
0 commit comments