unsplash / intlc

Compile ICU messages into code. Supports TypeScript and JSX. No runtime.
MIT License
56 stars 3 forks source link

stdin #110

Open OliverJAsh opened 2 years ago

OliverJAsh commented 2 years ago

This would be useful for sharing reduced test cases and experimenting, so we can't have to create files on disk.

I believe we used to have this?

samhh commented 2 years ago

We stopped taking stdin here:

This is closer to the likely eventual interface of receiving a glob of files.

Which is referencing #25.

I think we could add stdin/stdout support for an individual input without breaking forwards-compatibility with #25.

Accepting stdin via the CLI parser is a bit fiddly as evidenced by tshm.

samhh commented 2 years ago

This relates a bit to #129.