跳转到主内容

Pulumi

非官方测试版翻译

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

功能

显示当前活跃的 Pulumi 登录用户、URL 及堆栈。

注意

注意:需在 PATH 中包含 pulumi 可执行文件,且仅在包含 Pulumi.yaml 文件的目录中显示。

示例配置

{
"type": "pulumi",
"style": "diamond",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#662d91",
"template": " {{ .Stack }}{{if .User }} :: {{ .User }}@{{ end }}{{ if .URL }}{{ .URL }}{{ end }}"
}

选项

NameTypeDefaultDescription
fetch_stackbooleanfalsefetch the current stack name
fetch_aboutbooleanfalsefetch the URL and user for the current stask. Requires fetch_stack set to true

模板 (信息)

默认模板
\ue873 {{ .Stack }}{{if .User }} :: {{ .User }}@{{ end }}{{ if .URL }}{{ .URL }}{{ end }}

属性

NameTypeDescription
.Stackstringthe current stack name
.Userstringis the current logged in user
.Urlstringthe URL of the state where pulumi stores resources