Skip to content

Commit

Permalink
Merge pull request #1338 from hairyhenderson/clarify-inputdir-recursi…
Browse files Browse the repository at this point in the history
…veness

Clarify that inputDir is read recursively
  • Loading branch information
hairyhenderson authored Mar 11, 2022
2 parents cf1f215 + 69cd0fa commit bc706d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docs/content/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ May not be used with `inputDir` or `inputFiles`.

See [`--input-dir`](../usage/#input-dir-and-output-dir).

The directory containing input template files. Must be used with
[`outputDir`](#outputdir) or [`outputMap`](#outputmap). Can also be used with [`excludes`](#excludes).
The directory containing input template files. All files contained within will
be processed recursively. Must be used with [`outputDir`](#outputdir) or
[`outputMap`](#outputmap). Can also be used with [`excludes`](#excludes).

```yaml
inputDir: templates/
Expand Down
2 changes: 1 addition & 1 deletion docs/content/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ You can specify multiple `--file` and `--out` arguments. The same number of each

### `--input-dir` and `--output-dir`

For processing multiple templates in a directory you can use `--input-dir` and `--output-dir` together. In this case all files in input directory will be processed as templates and the resulting files stored in `--output-dir`. The output directory will be created if it does not exist and the directory structure of the input directory will be preserved.
For processing multiple templates in a directory you can use `--input-dir` and `--output-dir` together. In this case all files in input directory will be processed recursively as templates and the resulting files stored in `--output-dir`. The output directory will be created if it does not exist and the directory structure of the input directory will be preserved.

You can use the [`--exclude`](#exclude) argument and/or a [`.gomplateignore`](#ignorefile) file to exclude some of the files in the input directory.

Expand Down

0 comments on commit bc706d8

Please sign in to comment.