oh-my-posh/website/docs/segments/cftarget.md
2022-05-13 08:19:35 +02:00

864 B

id title sidebar_label
cftarget Cloud Foundry Target Cloud Foundry Target

What

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

Sample Configuration

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

Template (info)

:::note default template

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

:::

Template Properties

  • .Org: string - Cloud Foundry organization
  • .Space: string - Cloud Foundry space
  • .URL: string - Cloud Foundry API URL
  • .User: string - logged in user