ctags-lang-terraform(7)

πŸ“¦ version 6.2.1, in ubuntu resolute, ubuntu stonking

πŸ¦‹ 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 🌈


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