diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2017-11-27 19:33:22 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-27 19:33:22 -0500 |
| commit | e5d193a05b2c4515ce2da0fcb59ad8668dec3977 (patch) | |
| tree | ddc3ce43ea9d87ea9cf1d15705820e5964d78db3 /docs | |
| parent | 99b5cec8b37e25418bbfe2fc251f2adfd57603a2 (diff) | |
| parent | 13d46e7e593916effc2ca7d636a1c58352bad0bf (diff) | |
Merge pull request #220 from Gman98ish/master
Can now pass --exclude as a flag
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/content/usage.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/content/usage.md b/docs/content/usage.md index 3fdd6731..341877fb 100644 --- a/docs/content/usage.md +++ b/docs/content/usage.md @@ -43,6 +43,21 @@ Example: gomplate --input-dir=templates --output-dir=config --datasource config=config.yaml ``` +### `--exclude` + +To prevent certain files from being processed, you can use `--exclude`. It takes a glob, and any files matching that glob will not be included. + +Example: + +``` +gomplate --exclude example/** \ + --exclude *.png +``` + +This will stop all files in the example folder from being processed, as well as all .png files in the root folder. + +You can also chain the exclude flag to build up a series of globs to be excluded + ## `--datasource`/`-d` Add a data source in `name=URL` form. Specify multiple times to add multiple sources. The data can then be used by the [`datasource`](../functions/#datasource) and [`include`](../functions/#include) functions. |
