BugCreateFileInput read from either from a file or from the standard input and extract a title and a message
(fileName string)
| 47 | // BugCreateFileInput read from either from a file or from the standard input |
| 48 | // and extract a title and a message |
| 49 | func BugCreateFileInput(fileName string) (string, string, error) { |
| 50 | raw, err := input.FromFile(fileName) |
| 51 | if err != nil { |
| 52 | return "", "", err |
| 53 | } |
| 54 | |
| 55 | return processCreate(raw) |
| 56 | } |
| 57 | |
| 58 | func processCreate(raw string) (string, string, error) { |
| 59 | lines := strings.Split(raw, "\n") |
nothing calls this directly
no test coverage detected