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

Function AppGUID

integration/helpers/app.go:252–256  ·  view source on GitHub ↗

AppGUID returns the GUID for an app in the currently targeted space.

(appName string)

Source from the content-addressed store, hash-verified

250
251// AppGUID returns the GUID for an app in the currently targeted space.
252func AppGUID(appName string) string {
253 session := CF("app", appName, "--guid")
254 Eventually(session).Should(Exit(0))
255 return strings.TrimSpace(string(session.Out.Contents()))
256}
257
258// AppJSON returns the JSON representation of an app by name.
259func AppJSON(appName string) string {

Calls 1

CFFunction · 0.85

Tested by

no test coverage detected