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

Function CF

integration/helpers/command.go:26–34  ·  view source on GitHub ↗

CF runs a 'cf' command with given arguments.

(args ...string)

Source from the content-addressed store, hash-verified

24
25// CF runs a 'cf' command with given arguments.
26func CF(args ...string) *Session {
27 WriteCommand("", nil, args)
28 session, err := Start(
29 exec.Command("cf", args...),
30 NewPrefixedWriter(DebugOutPrefix, GinkgoWriter),
31 NewPrefixedWriter(DebugErrPrefix, GinkgoWriter))
32 Expect(err).NotTo(HaveOccurred())
33 return session
34}
35
36// CFEnv represents configuration for running a 'cf' command. It allows us to
37// run a 'cf' command with a custom working directory, specific environment

Calls 3

WriteCommandFunction · 0.85
CommandMethod · 0.65
StartFunction · 0.50

Tested by 6

deleteResourceByGUIDFunction · 0.74
installTestPluginFunction · 0.74
uninstallTestPluginFunction · 0.74
confirmTestPluginOutputFunction · 0.74