I'm looking for a more elegant way to do this:
import scala.sys.process._
(Seq("echo", "Mary had a little lamb") #| "code -").!!
In bash I'd do:
code - <<< Mary had a little lamb
I've tried going via an InputStream
and getting Scala to accept it as a Source
so the Process
can use it for its stdin
alas scalac did not like what I offered.