(cmd *cobra.Command)
| 243 | } |
| 244 | |
| 245 | func commandOutputFormatE(cmd *cobra.Command) (output.Format, error) { |
| 246 | value := string(output.FormatText) |
| 247 | if cmd != nil { |
| 248 | value = commandOutputFlagValue(cmd) |
| 249 | } |
| 250 | return parseOutputFormat(value) |
| 251 | } |
| 252 | |
| 253 | func commandOutputFlagValue(cmd *cobra.Command) string { |
| 254 | value, err := cmd.Flags().GetString(outputFlag) |
no test coverage detected