MCPcopy Index your code
hub / github.com/cli/cli / buildCommandSourceCode

Function buildCommandSourceCode

git/command_test.go:93–104  ·  view source on GitHub ↗
(exitCode int, stdout, stderr string)

Source from the content-addressed store, hash-verified

91}
92
93func buildCommandSourceCode(exitCode int, stdout, stderr string) string {
94 return fmt.Sprintf(`package main
95 import (
96 "fmt"
97 "os"
98 )
99 func main() {
100 fmt.Printf(%q)
101 fmt.Fprintf(os.Stderr, %q)
102 os.Exit(%d)
103 }`, stdout, stderr, exitCode)
104}

Callers 1

createMockExecutableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected