Skip to content

Commit

Permalink
Remove mention of directory arguments (#1921)
Browse files Browse the repository at this point in the history
  • Loading branch information
wata727 authored Nov 25, 2023
1 parent 064d98b commit b8350bf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docs/user-guide/working-directory.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,12 @@ Its behavior is the same as [Terraform's behavior](https://developer.hashicorp.c
- If you want to refer to the file in the original working directory, it is recommended to pass the absolute path using realpath(1) etc. e.g. `tflint --config=$(realpath .tflint.hcl)`.
- The `path.cwd` represents the original working directory. This is the same behavior as using `--chdir` in Terraform.

TFLint also accepts a directory as an argument, but `--chdir` is recommended in most cases. The directory argument is deprecated and may be removed in a future version.

The `--recursive` flag enables recursive inspection. This is the same as running with `--chdir` for each directory.

```console
$ tflint --recursive
```

It takes no arguments in recursive mode. Passing a directory or file name will result in an error.

These flags are also valid for `--init` and `--version`. Recursive init is required when installing required plugins all at once:

```console
Expand Down

0 comments on commit b8350bf

Please sign in to comment.