oxur / mdsplode

A CLI tool for exploding and serialising Markdown files (metadata, AST, rendered parts, and rendered whole)
Apache License 2.0
0 stars 0 forks source link

Test and document wrting/reading to/from `stdin`/`stdout` from another process #22

Closed oubiwann closed 6 months ago

oubiwann commented 6 months ago

Probably want to add a --no-banner option.

oubiwann commented 6 months ago

Also, when doing stuff like this:

the prompt loops endlessly ... gonna look into what might be causing this, and may end up needing a --headless option.

oubiwann commented 6 months ago

Okay, with the custom line reader removed and rustyline in place as its replacement, echo version | ./bin/mdsplode shell --headless is now working as expected!

Back to the fifo testing:

mkfifo testfifo
tail -f testfifo | ./bin/mdsplode shell

and then, in another terminal:

echo version > testfifo
echo help > testfifo
echo quit > testfifo

That works!