ctags-lang-terraform(7)
π¦ ctags-lang-terraform β¨
okay so bestie, this is a page from the Universal Ctags manual β section 7, the "random notes" zone β and it's all about tagging Terraform files. no cap, it's short but it's cute. let's get into it π
πΈ SYNOPSIS πΈ
like, here's the vibe of how you'd actually call it:
ctags ... --languages=+Terraform ...
ctags ... --language-force=Terraform ...
ctags ... --map-Terraform=+.tf ...
and if you want the variables tea too:
ctags ... --extras=+{reference} --languages=+TerraformVariables ...
ctags ... --extras=+{reference} --language-force=TerraformVariables ...
ctags ... --extras=+{reference} --map-Terraform=+.tfvars ...
π DESCRIPTION π
this man page is literally just a lil scrapbook of random notes about tagging Terraform files. that's it. that's the description. iconic of it honestly π
β¨ TIPS β¨
π Extracting variables assigned in Variable definitions
okay so here's the move: if you want to pull out the variables that get assigned in variable definitions (the *.tfvars ones, you know the ones), you gotta pass --extras=+{reference} AND --languages=+TerraformVariables together. both. not one. both. π«Ά
the TerraformVariables parser is the one doing the work here β it extracts variables in *.tfvars files, and it gives them the variable kind with the assigned role of the Terraform language. so like, it knows what it's doing. main character energy fr fr π
π VERSIONS π
π Change since "0.0"
- New kind
local
(that's the whole list. one item. short king behavior π)
π SEE ALSO π
ctags(1)- Configuration Syntax β
https://developer.hashicorp.com/terraform/language/syntax/configuration - Variable Definitions (
.tfvars) Files βhttps://developer.hashicorp.com/terraform/language/values/variables#variable-definitions-tfvars-files
lowkey a note for the besties: everything above is exactly what's in the original page β nothing added, nothing skipped. the URLs are the same, just un-wrapped so your terminal doesn't do that sad little line-break thing. π§
and that's the whole page, babe π this was ctags-lang-terraform(7) from Universal Ctags, version 6.2.1. go forth and tag your .tf files, you gorgeous little gremlin π¦β¨πΈ
π¦ where this page comes from
- ubuntu resolute: universal-ctags 6.2.1-1 Β· GPL-2.0-or-later
- ubuntu stonking: universal-ctags 6.2.1-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms