-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of taking --stdin-format to imply reading from stdin, use the convention of supplying `-` as an argument to denote reading from stdin, and just use the flag to alter how it's read. This will line up better with expectations; and, since --stdin-format can have a default (of "yaml"), invocations can be concise: jk transform ./script.js - .. rather than jk transform ./script.js --stdin-format=yaml Note that _no_ arguments does not imply reading from stdin. I did not want something that accidentally supplies no filenames to block, since that would make automation using `jk transform` brittle.
- Loading branch information
Showing
2 changed files
with
35 additions
and
16 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
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