tmedwards / tweego

Tweego is a free (gratis and libre) command line compiler for Twine/Twee story formats, written in Go.
https://www.motoslave.net/tweego
BSD 2-Clause "Simplified" License
124 stars 23 forks source link

Feature request: Reading from stdin #12

Open vorpalhex opened 4 years ago

vorpalhex commented 4 years ago
> cat test-twee/trivial.twee | tweego -f jailbird -
warning: path -: Reading from standard input is unsupported.
error: Starting passage "Start" not found.

Passing files via stdin is useful in many situations including as part of toolchains and in docker-based environments. This should be as simple as seeing if sources is empty and reading from os.Stdin instead.