MCPcopy Index your code
hub / github.com/git-bug/git-bug / BugCommentFileInput

Function BugCommentFileInput

commands/bug/input/input.go:110–117  ·  view source on GitHub ↗

BugCommentFileInput read from either from a file or from the standard input and extract a message

(fileName string)

Source from the content-addressed store, hash-verified

108// BugCommentFileInput read from either from a file or from the standard input
109// and extract a message
110func BugCommentFileInput(fileName string) (string, error) {
111 raw, err := input.FromFile(fileName)
112 if err != nil {
113 return "", err
114 }
115
116 return processComment(raw)
117}
118
119func processComment(raw string) (string, error) {
120 lines := strings.Split(raw, "\n")

Callers

nothing calls this directly

Calls 2

FromFileFunction · 0.92
processCommentFunction · 0.85

Tested by

no test coverage detected