inim-repl / INim

Interactive Nim shell / REPL / Playground
MIT License
644 stars 23 forks source link

Piping inim code will now cause inim to run said code and exit #100

Closed Tangdongle closed 4 years ago

Tangdongle commented 4 years ago

Fix up piping so when code is piped into INim, it will execute the code and return the output. Can be used in conjunction with the --srcFile argument to preload code and run small snippets of code against it from the command line

0atman commented 4 years ago

Extremely nice! I'll check this on my machine, but the tests pass on CI! :ok_hand:

0atman commented 4 years ago
λ echo "2+2" | ./inim
4

Works for me! NICE!

0atman commented 4 years ago

Thanks so much @Tangdongle