mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-03 07:17:26 -08:00
1 KiB
1 KiB
id | title | sidebar_label |
---|---|---|
project | Project | Project |
What
Display the current version of your project defined in the package file.
Supports:
- Node.js project (
package.json
) - Cargo project (
Cargo.toml
) - Poetry project (
pyproject.toml
) - PHP project (
composer.json
) - Any nuspec based project (
*.nuspec
, first file match info is displayed)
Sample Configuration
{
"type": "project",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#ffeb3b",
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }}\uf487 {{.Version}}{{ end }} {{ if .Name }}{{ .Name }}{{ end }}{{ end }} "
}
Template (info)
:::note default template
{{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }}\uf487 {{.Version}}{{ end }} {{ if .Name }}{{ .Name }}{{ end }}{{ end }}
:::
Properties
.Version
:string
- The version of your project.Name
:string
- The name of your project