CF runs a 'cf' command with given arguments.
(args ...string)
| 24 | |
| 25 | // CF runs a 'cf' command with given arguments. |
| 26 | func 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 |