Comments (9)
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.
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.
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.
.tf
: https://developer.hashicorp.com/terraform/language/files.tfvars
: https://developer.hashicorp.com/terraform/language/values/variables
from ack3.
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.
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.
--terraform
is more verbose but it's indeed unambiguous, that would be fine too
from ack3.
So .tf and .tfvars are the same format, but the extension you choose is based on its usage and convention?
from ack3.
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.
Done, thanks, 9fd9834
from ack3.
Related Issues (20)
- Add an option to show first N lines (--head=N) HOT 21
- Add option for color search HOT 2
- Get a new test codebase for timings
- Support ".ps1" PowerShell file type HOT 6
- Request: --no-group-separator option HOT 4
- ack manual ACK COLORS: typing errors `ACK COLOR_LINENO` + `ACK COLOR_COLNO` HOT 5
- Add GN (Generate Ninja) filetype HOT 3
- Add field support (a la Perl) HOT 9
- -x and --type=format options should be mutex HOT 4
- Add a -X that acts like -x but obeys the --type filters HOT 4
- Missing release email for ack v3.7.0 HOT 1
- Filetype request: .txt filetype HOT 7
- Please support relative paths in --ignore-dir HOT 1
- Have a --noignore-file option HOT 1
- Başarılı oldunuz
- Positive-Lookbehind Regex Should Not Be Captured HOT 1
- Strange behaviour when search string begins with + character HOT 11
- Add jinja2 filetype
- Add specific shell types
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ack3.