(cmd *cobra.Command)
| 209 | } |
| 210 | |
| 211 | func isJSONHelpCommand(cmd *cobra.Command) bool { |
| 212 | return cmd != nil && cmd.Annotations[commandJSONHelpAnnotation] == "true" |
| 213 | } |
| 214 | |
| 215 | func rawArgsRequestJSONHelp(args []string) bool { |
| 216 | return outputJSONRequested(args) && (rawArgsHaveHelpFlag(args) || rawArgsFirstCommand(args) == "help") |
no outgoing calls
no test coverage detected