piotr-yuxuan / malli-cli

Configuration powertool with `metosin/malli`
https://github.com/piotr-yuxuan/malli-cli
European Union Public License 1.2
54 stars 3 forks source link

Who needs stdin support? #3

Open piotr-yuxuan opened 3 years ago

piotr-yuxuan commented 3 years ago

Besides keys :options and :arguments, how could the user get a key :stdin for some parsing, coercion, and validation of the standard input?

piotr-yuxuan commented 2 years ago

Standard input in is a clojure.lang.LineNumberingPushbackReader. Not really sure how to handle it with a map. Perhaps it's out of scope of this library ? Happy to reopen it if somebody sees a legit usecase.