(token string)
| 124 | } |
| 125 | |
| 126 | func truncateToken(token string) string { |
| 127 | const previewLen = 10 |
| 128 | if len(token) <= previewLen*2 { |
| 129 | return token |
| 130 | } |
| 131 | return token[:previewLen] + "..." + token[len(token)-previewLen:] |
| 132 | } |
| 133 | |
| 134 | func newDebugOAuthRemoveCmd() *cobra.Command { |
| 135 | return &cobra.Command{ |
no outgoing calls
no test coverage detected