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

Function BugCreateFileInput

commands/bug/input/input.go:49–56  ·  view source on GitHub ↗

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

(fileName string)

Source from the content-addressed store, hash-verified

47// BugCreateFileInput read from either from a file or from the standard input
48// and extract a title and a message
49func 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
58func processCreate(raw string) (string, string, error) {
59 lines := strings.Split(raw, "\n")

Callers

nothing calls this directly

Calls 2

FromFileFunction · 0.92
processCreateFunction · 0.85

Tested by

no test coverage detected