Cloud Foundry 目标环境
非官方测试版翻译
本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →
功能
显示已登录的 Cloud Foundry 端点 详细信息(即 cf target 命令的输出内容)。
示例配置
- json
- yaml
- toml
{
"background": "#a7cae1",
"foreground": "#100e23",
"powerline_symbol": "",
"template": " {{ .Org }}/{{ .Space }} ",
"style": "powerline",
"type": "cftarget"
}
background: "#a7cae1"
foreground: "#100e23"
powerline_symbol:
template: " {{ .Org }}/{{ .Space }} "
style: powerline
type: cftarget
background = "#a7cae1"
foreground = "#100e23"
powerline_symbol = ""
template = " {{ .Org }}/{{ .Space }} "
style = "powerline"
type = "cftarget"
选项
| Name | Type | Default | Description |
|---|---|---|---|
display_mode | string | always |
|
files | []string | ["manifest.yml"] | on which files to display the segment on. Will look in parent folders as well |
模板 (信息)
默认模板
{{if .Org }}{{ .Org }}{{ end }}{{ if .Space }}/{{ .Space }}{{ end }}
属性
| Name | Type | Description |
|---|---|---|
.Org | string | Cloud Foundry organization |
.Space | string | Cloud Foundry space |
.URL | string | Cloud Foundry API URL |
.User | string | logged in user |