Pulumi
非官方测试版翻译
本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →
功能
显示当前活跃的 Pulumi 登录用户、URL 及堆栈。
注意
注意:需在 PATH 中包含 pulumi 可执行文件,且仅在包含 Pulumi.yaml 文件的目录中显示。
示例配置
- json
- yaml
- toml
{
"type": "pulumi",
"style": "diamond",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#662d91",
"template": " {{ .Stack }}{{if .User }} :: {{ .User }}@{{ end }}{{ if .URL }}{{ .URL }}{{ end }}"
}
type: pulumi
style: diamond
powerline_symbol:
foreground: "#ffffff"
background: "#662d91"
template: " {{ .Stack }}{{if .User }} :: {{ .User }}@{{ end }}{{ if .URL }}{{
.URL }}{{ end }}"
type = "pulumi"
style = "diamond"
powerline_symbol = ""
foreground = "#ffffff"
background = "#662d91"
template = " {{ .Stack }}{{if .User }} :: {{ .User }}@{{ end }}{{ if .URL }}{{ .URL }}{{ end }}"
选项
| Name | Type | Default | Description |
|---|---|---|---|
fetch_stack | boolean | false | fetch the current stack name |
fetch_about | boolean | false | fetch the URL and user for the current stask. Requires fetch_stack set to true |
模板 (信息)
默认模板
\ue873 {{ .Stack }}{{if .User }} :: {{ .User }}@{{ end }}{{ if .URL }}{{ .URL }}{{ end }}
属性
| Name | Type | Description |
|---|---|---|
.Stack | string | the current stack name |
.User | string | is the current logged in user |
.Url | string | the URL of the state where pulumi stores resources |