hey - another question I’m thinking about is how to pass data into a script via piping from a previous command - any pointers? Thanks!
You’ll have to use interop for this as well for the time being.
Maybe we can document what that interop looks like in examples/stdin.cljs
Yes. Good interim solution.
no worries about the interop - recognise how new this project is and thanks so much for the pointers
I'm actually interested in how to do this, since the answers on Stackoverflow look rather messy
I admit I’ve been a little put off by some of the messiness on SO (hence my drift towards clojure world as much as possible)
Yeah, the StackOverflow answers are the only solutions I’ve found so far.
Would be delighted if there were a better way.
I think we’ll probably have to go the ObjC route.
maybe something like this works?
$ echo '1' | bb -e '(slurp "/dev/stdin")'
"1\n"Worth a shot!
I'm not sure if that's a total hack and a bad idea
but it seems to work :P
Honestly, I think for a lot of stuff we’re going to need ObjC anyway, so we may as well do it that way.
will give it a go and thanks