(cmd *cobra.Command)
| 42 | ) |
| 43 | |
| 44 | func DisableAuthCheck(cmd *cobra.Command) { |
| 45 | if cmd.Annotations == nil { |
| 46 | cmd.Annotations = map[string]string{} |
| 47 | } |
| 48 | |
| 49 | cmd.Annotations["skipAuthCheck"] = "true" |
| 50 | } |
| 51 | |
| 52 | func CheckAuth(cfg config.Config) error { |
| 53 | if cfg.Profile().Name == "" { |
no outgoing calls
no test coverage detected