Firebase
非官方测试版翻译
本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →
功能
显示当前活动的 Firebase 项目。
该片段利用 Firebase CLI 生成的 firebase-tools.json 文件。
通过该文件中列出的活动文件,结合当前目录确定当前项目。
示例配置
- json
- yaml
- toml
{
"type": "firebase",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#FFA000",
"template": " {{ .Project }}"
}
type: firebase
style: powerline
powerline_symbol:
foreground: "#ffffff"
background: "#FFA000"
template: " {{ .Project }}"
type = "firebase"
style = "powerline"
powerline_symbol = ""
foreground = "#ffffff"
background = "#FFA000"
template = " {{ .Project }}"
模板 (信息)
默认模板
{{ .Project }}
属性
| Name | Type | Description |
|---|---|---|
.Project | string | the currently active project |