GitVersion
Traduction Bêta Non Officielle
Cette page a été traduite par PageTurner AI (bêta). Non approuvée officiellement par le projet. Vous avez trouvé une erreur ? Signaler un problème →
Description
Affiche la version de GitVersion. Nous recommandons vivement d'utiliser GitVersion Portable pour cela.
attention
L'interface CLI de GitVersion peut être un peu lente, ce qui rend l'invite de commande peu réactive. C'est pourquoi nous mettons la valeur en cache pendant 30 minutes par défaut.
Exemple de configuration
- json
- yaml
- toml
{
"type": "gitversion",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#3a579b",
"template": " {{ .MajorMinorPatch }} "
}
type: gitversion
style: powerline
powerline_symbol:
foreground: "#ffffff"
background: "#3a579b"
template: " {{ .MajorMinorPatch }} "
type = "gitversion"
style = "powerline"
powerline_symbol = ""
foreground = "#ffffff"
background = "#3a579b"
template = " {{ .MajorMinorPatch }} "
Modèle (info)
modèle par défaut
{{ .MajorMinorPatch }}
Propriétés
Vous pouvez utiliser toutes les variables disponibles dans l'interface CLI de GitVersion. Consultez leur documentation pour plus d'informations.