MCPcopy
hub / github.com/cloudfoundry/cli / hello

Function hello

integration/assets/go_calls_ruby/site.go:25–33  ·  view source on GitHub ↗
(res http.ResponseWriter, req *http.Request)

Source from the content-addressed store, hash-verified

23}
24
25func hello(res http.ResponseWriter, req *http.Request) {
26 bundlerVersion, err := exec.Command("bundle", "--version").Output()
27 if err != nil {
28 log.Print("ERROR:", err)
29 fmt.Fprintf(res, "ERROR: %v\n", err)
30 } else {
31 fmt.Fprintf(res, "The bundler version is: %s\n", bundlerVersion)
32 }
33}

Callers

nothing calls this directly

Calls 2

CommandMethod · 0.65
PrintMethod · 0.65

Tested by

no test coverage detected