The Cloud Foundry CLI contains the terminal.Table
type in order to print
output in table format onto the terminal.
In order to test the terminal output easily, the ContainsCLITable
gomega matcher
can be used to verify if the output contains the specified table format.
See the tests or the sample for example usages.
go test ./... -race