Back to Oh My Posh

Cloud Foundry Target

website/docs/segments/cloud/cftarget.mdx

29.12.01.9 KB
Original Source

What

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

Sample Configuration

import Config from "@site/src/components/Config.js";

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

Options

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

Template (info)

:::note default template

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

:::

Properties

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