(formatOpt interface{})
| 184 | } |
| 185 | |
| 186 | func findOutputFormat(formatOpt interface{}) (string, error) { |
| 187 | for _, format := range outputFormats { |
| 188 | if format == formatOpt { |
| 189 | return format, nil |
| 190 | } |
| 191 | } |
| 192 | return "", fmt.Errorf(incorrectOutputFormat, outputFormats) |
| 193 | } |
| 194 | |
| 195 | func findFields(fieldsOpt interface{}) ([]string, error) { |
| 196 | // TODO: perform fields check against resource definition |
no test coverage detected