isExtensionCommand returns true if args resolve to an extension command.
(rootCmd *cobra.Command, args []string)
| 277 | |
| 278 | // isExtensionCommand returns true if args resolve to an extension command. |
| 279 | func isExtensionCommand(rootCmd *cobra.Command, args []string) bool { |
| 280 | c, _, err := rootCmd.Find(args) |
| 281 | return err == nil && c != nil && c.GroupID == "extension" |
| 282 | } |
| 283 | |
| 284 | // refreshTelemetryCommands lists the commands reported by name with token refresh attempts. They are the commands that |
| 285 | // refresh a token directly rather than through the HTTP client. |