Aller au contenu principal

Contexte Terraform

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 le nom de l'espace de travail Terraform actuellement actif.

Exemple de configuration

{
"type": "terraform",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#ebcc34",
"template": "  {{.WorkspaceName}}"
}

Options

NameTypeDefaultDescription
fetch_versionbooleanfalsefetch the version information from versions.tf, main.tf or terraform.tfstate
commandstringterraformthe command(s) to run, allows support for tofu

Modèle (info)

modèle par défaut
 {{ .WorkspaceName }}{{ if .Version }} {{ .Version }}{{ end }}

Propriétés

NameTypeDescription
.WorkspaceNamestringis the current workspace name
.Versionstringterraform version (set fetch_version to true)