Git Product home page Git Product logo

Comments (9)

petdance avatar petdance commented on August 22, 2024

What the definition of the filetype would be, taken from the .ackrc file that you've been using: .tf, .tfvars

Can you please paste your .ackrc in here?

from ack3.

petdance avatar petdance commented on August 22, 2024

URL of a web page that discusses what the filetype is: https://www.terraform.io/

Please point me to a page that describes this file format.

from ack3.

thiagowfx avatar thiagowfx commented on August 22, 2024

Can you please paste your .ackrc in here?

# terraform
--type-add=tf=.tf,.tfvars

Please point me to a page that describes this file format.

from ack3.

petdance avatar petdance commented on August 22, 2024

Is there a different between the .tf and .tfvars? Why are they combined in one fileytype?

I'm thinking it might make more sense to be --terraform than --tf, for clarity, if not brevity.

from ack3.

thiagowfx avatar thiagowfx commented on August 22, 2024

Let me make an analogy with shell: .tf. is like .sh, where you put in the bulk of your terraform config.

.tfvars is like .env or .envrc where you set / populate variables (environment variables in case of shell).

from ack3.

thiagowfx avatar thiagowfx commented on August 22, 2024

--terraform is more verbose but it's indeed unambiguous, that would be fine too

from ack3.

petdance avatar petdance commented on August 22, 2024

So .tf and .tfvars are the same format, but the extension you choose is based on its usage and convention?

from ack3.

thiagowfx avatar thiagowfx commented on August 22, 2024

I chose tf initially merely because it's shorter.

In hindsight, --terraform is better as it can unambiguously refer to both formats.

Again, if I were to make an analogy with shell, --shell encompasses .bash, .zsh, .sh, etc. Whereas --sh is short to type but it's not apparently obvious whether it refers to only .sh or "any shell extension".

So let's go with your suggestion :P

--type-add=terraform=.tf,.tfvars

from ack3.

petdance avatar petdance commented on August 22, 2024

Done, thanks, 9fd9834

from ack3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.