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

CLI rendering via govspeak binary #87

Merged
merged 2 commits into from
Sep 23, 2016
Merged

CLI rendering via govspeak binary #87

merged 2 commits into from
Sep 23, 2016

Conversation

kevindew
Copy link
Member

This adds in a binary so that you can render govspeak from the command line, hardly an essential feature but it's been very useful in debugging how govspeak interacts.

I figure it may also be useful if there are any non ruby applications that need to make use of govspeak.

Usage

  • As an argument: govspeak "render me"
  • From a file: govspeak --file render-me.md
  • From stdin: echo "render-me" | govspeak
  • Via bundler: bundle exec govspeak "render-me"

Outputs to stdout

Govspeak options can be passed in as JSON as a string through--options or as a file through --options-file options.json

@kevindew kevindew changed the title CLI rendering via govspeak binary [DO NOT MERGE] CLI rendering via govspeak binary Sep 22, 2016
Introduces a `govspeak` bin which can take input in three ways:

1. As an argument: `govspeak "render me"`
2. From a file: `govspeak --file render-me.md`
3. From stdin: `echo "render-me" | govspeak`

All output to stdout

Govspeak options can be passed in as JSON as a string through
`--options` or as a file through `--options-file options.json`
@kevindew kevindew changed the title [DO NOT MERGE] CLI rendering via govspeak binary CLI rendering via govspeak binary Sep 22, 2016
@dougdroper dougdroper merged commit 9189893 into master Sep 23, 2016
@dougdroper dougdroper deleted the cli branch September 23, 2016 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants