(cmd *cobra.Command)
| 112 | } |
| 113 | |
| 114 | func commandSkipsAuth(cmd *cobra.Command) bool { |
| 115 | for c := cmd; c != nil; c = c.Parent() { |
| 116 | switch c.Name() { |
| 117 | case "__complete", "__completeNoDesc", "completion", "help", "version": |
| 118 | return true |
| 119 | } |
| 120 | } |
| 121 | return false |
| 122 | } |
| 123 | |
| 124 | func oauthCredentials(tokenType string) string { |
| 125 | switch tokenType { |
no outgoing calls
no test coverage detected