(output ScopesOutput)
| 220 | } |
| 221 | |
| 222 | func outputSummary(output ScopesOutput) error { |
| 223 | if len(output.UniqueScopes) == 0 { |
| 224 | fmt.Println("No OAuth scopes required for enabled tools.") |
| 225 | return nil |
| 226 | } |
| 227 | |
| 228 | fmt.Println("Required OAuth scopes for enabled tools:") |
| 229 | fmt.Println() |
| 230 | for _, scope := range output.UniqueScopes { |
| 231 | fmt.Printf(" %s\n", formatScopeDisplay(scope)) |
| 232 | } |
| 233 | fmt.Printf("\nTotal: %d unique scope(s)\n", len(output.UniqueScopes)) |
| 234 | return nil |
| 235 | } |
| 236 | |
| 237 | func outputText(output ScopesOutput) error { |
| 238 | fmt.Printf("OAuth Scopes for Enabled Tools\n") |
no test coverage detected