|
|
|
|
|
by spiffyk
484 days ago
|
|
Thanks for sharing! No immediate use-case for me right now, but good to know something like this exists. I wanted to point out little nitpicks for the documented shell invocations: cat example.md | mdq '# usage'
This can be changed into a stdin file redirect to avoid invoking an extra `cat` process (see Useless use of cat [1]): mdq '# usage' < example.md
In a similar fashion, you can avoid an extra `echo` process here: echo "$ISSUE_TEXT" | mdq -q '- [x] I have searched for existing issues'
by changing to this: mdq -q '- [x] I have searched for existing issues' <<< "$ISSUE_TEXT"
[1]: https://en.wikipedia.org/wiki/Cat_(Unix)#Useless_use_of_cat |
|