Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding more ways to specify input/output #114

Merged
merged 1 commit into from
Apr 8, 2017
Merged

Conversation

hairyhenderson
Copy link
Owner

@hairyhenderson hairyhenderson commented Apr 8, 2017

This adds 3 new commandline options:

  • --file/-f: Filename of the template to process (lets you specify a file instead of forcing stdin). Can still use stdin by choosing - (the default)
  • can be given multiple times to process multiple templates (requires the same number of --out args)
  • --in/-i: An input string to process (avoids having to pipe from echo)
  • --out/-o: Allows saving the output to a file. Can still use stdout by choosing - (the default)

Signed-off-by: Dave Henderson dhenderson@gmail.com

@hairyhenderson hairyhenderson self-assigned this Apr 8, 2017
@hairyhenderson hairyhenderson force-pushed the more-io-options branch 3 times, most recently from 3929f3b to 0a47201 Compare April 8, 2017 21:29
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant