Skip to content

Instantly share code, notes, and snippets.

@mikeananev
Created July 28, 2022 13:56
Show Gist options
  • Save mikeananev/f822d5876aad733dfda9e80780fd7f9b to your computer and use it in GitHub Desktop.
Save mikeananev/f822d5876aad733dfda9e80780fd7f9b to your computer and use it in GitHub Desktop.
Example of using pipes between processes
(->
(process ["echo" (pr-str {:a 1 :b 2 :qwe "1234"})])
(process [cljstyle-program "pipe"] {:out :string})
deref
:out)
(-> (process ["echo" (pr-str {:a 1 :b 2 :qwe "1234"})])
(process ["cat"] {:out :string})
deref
:out)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment