(cmd *cobra.Command, args []string)
| 149 | } |
| 150 | |
| 151 | func validateOutput(cmd *cobra.Command, args []string) error { |
| 152 | // validate output format |
| 153 | output := viper.GetString(OutputFlag) |
| 154 | switch output { |
| 155 | case "text", "json": |
| 156 | default: |
| 157 | return fmt.Errorf("unsupported output format: %s", output) |
| 158 | } |
| 159 | return nil |
| 160 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…