-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c131a50
commit e560fd6
Showing
3 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
## Outputs | ||
|
||
ytt supports two different output destinations: | ||
ytt supports three different output destinations: | ||
|
||
- stdout, which is default | ||
- output directory, controlled via `--output-directory` | ||
|
||
When destination is stdout, all YAML documents are combined into one document set. Non-yaml files are not printed anywhere. | ||
All YAML documents are combined into one document set. Non-YAML files are not printed anywhere. | ||
|
||
When destination is an output directory, ytt will _empty out_ directory beforehand and write out result files preserving file names. | ||
- output files, controlled via `--output-files` flag (v0.28.0+) | ||
|
||
Output files will be added to given directory, preserving file names. Example: `ytt -f config.yml --output-files tmp/`. | ||
|
||
- output directory, controlled via `--dangerous-emptied-output-directory` flag | ||
|
||
Given directory will be _emptied out_ beforehand and output files will be added preserving file names. Example: `ytt -f config.yml --dangerous-emptied-output-files tmp/ytt/`. | ||
|
||
If you want to control which files are included in the output use `--file-mark 'something.yml:exclusive-for-output=true'` flag to mark one or more files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters