Skip to main content

Project

Whatโ€‹

Display the current version of your project defined in the package file.

Supports:

  • Node.js project (package.json)
  • Cargo project (Cargo.toml)
  • Python project (pyproject.toml, supports metadata defined according to PEP 621 or Poetry)
  • PHP project (composer.json)
  • Any nuspec based project (*.nuspec, first file match info is displayed)
  • .NET project (*.sln, *.slnf, *.csproj, *.vbproj or *.fsproj, first file match info is displayed)
  • Julia project (JuliaProject.toml, Project.toml)
  • PowerShell project (*.psd1, first file match info is displayed)

Sample Configurationโ€‹

{
"type": "project",
"style": "powerline",
"powerline_symbol": "๎‚ฐ",
"foreground": "#193549",
"background": "#ffeb3b",
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }}๏’‡ {{.Version}}{{ end }} {{ if .Name }}{{ .Name }}{{ end }}{{ end }} "
}

Propertiesโ€‹

NameTypeDefaultDescription
always_enabledbooleanfalsealways show the segment

Template (info)โ€‹

default template
 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }}\uf487 {{.Version}}{{ end }} {{ if .Name }}{{ .Name }}{{ end }}{{ end }}

Propertiesโ€‹

NameTypeDescription
.TypestringThe type of project:
  • node
  • cargo
  • python
  • php
  • nuspec
  • dotnet
  • julia
  • powershell
.VersionstringThe version of your project
.TargetstringThe target framwork/language version of your project
.NamestringThe name of your project
.ErrorstringThe error context when we can't fetch the project info