Proyecto
Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →
Qué hace
Muestra la versión actual de tu proyecto definida en el archivo de paquete.
Soporta:
-
Proyectos Node.js (
package.json) -
Proyectos Deno (
deno.json,deno.jsonc) -
Proyectos JSR (
jsr.json,jsr.jsonc) -
Proyectos Cargo (
Cargo.toml) -
Proyectos Python (
pyproject.toml, soporta metadatos definidos según PEP 621 o Poetry) -
Proyectos Mojo (
mojoproject.toml) -
Proyectos PHP (
composer.json) -
Proyectos Dart (
pubspec.yaml) -
Proyectos basados en nuspec (
*.nuspec, muestra información del primer archivo coincidente) -
Proyectos .NET (
*.sln,*.slnf,*.slnx,*.csproj,*.vbprojo*.fsproj, muestra información del primer archivo coincidente) -
Proyectos Julia (
JuliaProject.toml,Project.toml) -
Proyectos PowerShell (
*.psd1, muestra información del primer archivo coincidente)
Configuración de ejemplo
- json
- yaml
- toml
{
"type": "project",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#193549",
"background": "#ffeb3b",
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }} {{.Version}}{{ end }} {{ if .Name }}{{ .Name }}{{ end }}{{ end }} "
}
type: project
style: powerline
powerline_symbol:
foreground: "#193549"
background: "#ffeb3b"
template: " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }}
{{.Version}}{{ end }} {{ if .Name }}{{ .Name }}{{ end }}{{ end }} "
type = "project"
style = "powerline"
powerline_symbol = ""
foreground = "#193549"
background = "#ffeb3b"
template = " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }} {{.Version}}{{ end }} {{ if .Name }}{{ .Name }}{{ end }}{{ end }} "
Opciones
| Name | Type | Default | Description |
|---|---|---|---|
always_enabled | boolean | false | always show the segment |
<type>_files | array | [] | override the project's files to validate for. Use the .Type values listed below to override (e.g. dotnet_files) |
Plantilla (info)
{{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }}\uf487 {{.Version}}{{ end }} {{ if .Name }}{{ .Name }}{{ end }}{{ end }}
Propiedades
| Name | Type | Description |
|---|---|---|
.Type | string | The type of project:
|
.Version | string | The version of your project |
.Target | string | The target framework/language version of your project |
.Name | string | The name of your project |
.Error | string | The error context when we can't fetch the project info |