Skip to main content

Cloud Foundry Target

What

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

Sample Configuration

{
"background": "#a7cae1",
"foreground": "#100e23",
"powerline_symbol": "",
"template": "  {{ .Org }}/{{ .Space }} ",
"style": "powerline",
"type": "cftarget"
}

Properties

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