Skip to main content

Cloud Foundry Target

What

Display the details of the logged Cloud Foundry endpoint (cf target details).

Sample Configuration

×  example-org/production _ ohmyposh.dev ×  example-org/production _ ohmyposh.dev )}

Options

NameTypeDefaultDescription
display_modestringalways
  • always: the segment is always displayed
  • files: the segment is only displayed when a manifest.yml file is present (or defined otherwise using files)
files[]string["manifest.yml"]on which files to display the segment on. Will look in parent folders as well

Template (info)

default template
{{if .Org }}{{ .Org }}{{ end }}{{ if .Space }}/{{ .Space }}{{ end }}

Properties

NameTypeDescription
.OrgstringCloud Foundry organization
.SpacestringCloud Foundry space
.URLstringCloud Foundry API URL
.Userstringlogged in user