跳转到主内容

Cloud Foundry 目标环境

非官方测试版翻译

本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →

功能

显示已登录的 Cloud Foundry 端点 详细信息(即 cf target 命令的输出内容)。

示例配置

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

选项

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

模板 (信息)

默认模板
{{if .Org }}{{ .Org }}{{ end }}{{ if .Space }}/{{ .Space }}{{ end }}

属性

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