This Go program will print out the currently targeted Cloudfoundry api, org and space.
The program was created with the intention of printing the Cloudfoundry target so that you may easily add it to your terminal prompt.
$ cf-target -h
Usage of cf-target:
-api=false: display api target
-org=false: display org
-space=false: display space
$ go get github.com/dbellotti/cf-target
If you like this, it was heavily influenced by Kevin Kelani's awesome bosh-target