oh-my-posh/website/docs/segments/cftarget.mdx
2022-06-03 20:42:25 +02:00

43 lines
856 B
Plaintext

---
id: cftarget
title: Cloud Foundry Target
sidebar_label: Cloud Foundry Target
---
## What
Display the details of the logged [Cloud Foundry endpoint][cf-target] (`cf target` details).
## Sample Configuration
```json
{
"background": "#a7cae1",
"foreground": "#100e23",
"powerline_symbol": "\ue0b0",
"template": " \uf40a {{ .Org }}/{{ .Space }} ",
"style": "powerline",
"type": "cftarget"
}
```
## Template ([info][templates])
:::note default template
```template
{{if .Org }}{{ .Org }}{{ end }}{{ if .Space }}/{{ .Space }}{{ end }}
```
:::
### Properties
- `.Org`: `string` - Cloud Foundry organization
- `.Space`: `string` - Cloud Foundry space
- `.URL`: `string` - Cloud Foundry API URL
- `.User`: `string` - logged in user
[templates]: /docs/configuration/templates
[cf-target]: https://cli.cloudfoundry.org/en-US/v8/target.html