BugCommentEditorInput will open the default editor in the terminal with a template for the user to fill. The file is then processed to extract a comment.
(repo repository.RepoCommonStorage, preMessage string)
| 95 | // BugCommentEditorInput will open the default editor in the terminal with a |
| 96 | // template for the user to fill. The file is then processed to extract a comment. |
| 97 | func BugCommentEditorInput(repo repository.RepoCommonStorage, preMessage string) (string, error) { |
| 98 | template := fmt.Sprintf(bugCommentTemplate, preMessage) |
| 99 | |
| 100 | raw, err := input.LaunchEditorWithTemplate(repo, messageFilename, template) |
| 101 | if err != nil { |
| 102 | return "", err |
| 103 | } |
| 104 | |
| 105 | return processComment(raw) |
| 106 | } |
| 107 | |
| 108 | // BugCommentFileInput read from either from a file or from the standard input |
| 109 | // and extract a message |
nothing calls this directly
no test coverage detected