(cmd *cobra.Command)
| 11 | const skipAuthCheckAnnotation = "skipAuthCheck" |
| 12 | |
| 13 | func DisableAuthCheck(cmd *cobra.Command) { |
| 14 | if cmd.Annotations == nil { |
| 15 | cmd.Annotations = map[string]string{} |
| 16 | } |
| 17 | |
| 18 | cmd.Annotations[skipAuthCheckAnnotation] = "true" |
| 19 | } |
| 20 | |
| 21 | func DisableAuthCheckFlag(flag *pflag.Flag) { |
| 22 | if flag.Annotations == nil { |
no outgoing calls