CTAGS-LANG-TERRAFORM(7)

πŸ“¦
version 6.2.1 Β· 5 versions
, in alpine 3.24, fedora 43, fedora 44

✨ ctags-lang-terraform β€” random notes about tagging Terraform files with Universal Ctags πŸ’–

okay bestie, so this is a page from the Universal Ctags manual set, section 7 (that's the "miscellaneous" girlies), and it's literally just a lil scrapbook of random notes about tagging Terraform files. no cap. let's get into it πŸ¦‹


🌸 SYNOPSIS 🌸

here's the vibe β€” you run ctags and you point it at Terraform stuff:

ctags ... --languages=+Terraform ...
ctags ... --language-force=Terraform ...
ctags ... --map-Terraform=+.tf ...

and then, if you also want the variables that get assigned inside variable definitions, you add the reference extra and bring the TerraformVariables parser into the group chat:

ctags ... --extras=+{reference} --languages=+TerraformVariables ...
ctags ... --extras=+{reference} --language-force=TerraformVariables ...
ctags ... --extras=+{reference} --map-Terraform=+.tfvars ...

πŸ’… DESCRIPTION πŸ’…

this man page gathers random notes about tagging Terraform files. that's it, that's the whole premise. it's giving "notes app at 3am" but make it a parser doc πŸŽ€


πŸ‘‘ TIPS πŸ‘‘

πŸ“ Extracting variables assigned in Variable definitions

okay so this one is the main character of this page. if you want to pull out the variables that are assigned inside variable definitions β€” you know, the ones living in *.tfvars β€” you do this:

  • specify --extras=+{reference}
  • and specify --languages=+TerraformVariables

the TerraformVariables parser is the one that handles *.tfvars files, and it extracts those variables with the variable kind and the assigned role of the Terraform language. so like, the Terraform parser and the TerraformVariables parser are besties working two different files, and the reference extra is what makes the connection pop off ✨


🌈 VERSIONS 🌈

πŸ’œ Change since "0.0"

  • new kind local πŸ‘‘

periodt. that's the whole changelog for this one, and honestly? she ate.


🫢 SEE ALSO 🫢


🌟 and that's the tea! this lil love letter was brought to you by Universal Ctags version 6.2.1, filed under CTAGS-LANG-TERRAFORM(7). go tag some infra, bestie, you're doing amazing sweetie πŸ’–πŸ§šπŸŒΈ
πŸ“¦ where this page comes from