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

Reading from stdin #33

Closed
timothymillar opened this issue Jun 30, 2020 · 1 comment
Closed

Reading from stdin #33

timothymillar opened this issue Jun 30, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@timothymillar
Copy link

It would be useful if codebraid could read directly from stdin.
This would allow for piping the output of a pandoc command into codebraid e.g.:

pandoc --filter <filter> --to markdown | codebraid pandoc ...

A common way to implement this in argparse is to use - to specify reading from stdin e.g.:

pandoc --filter <filter> --to markdown | codebraid pandoc - -o result.md
@gpoore gpoore added the enhancement New feature or request label Jun 30, 2020
gpoore added a commit that referenced this issue Aug 14, 2020
@gpoore
Copy link
Owner

gpoore commented Aug 14, 2020

Thanks for the suggestion! This should work with the last commit. I'll put a new version on PyPI as soon as I address a few other issues.

@gpoore gpoore closed this as completed Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants