diff --git a/README.md b/README.md index 79b452b..4a5130c 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ to things in real time and I wasn't able to do that with In Leiningen: ```clojure -:dependencies [[conch "0.1.0"]] +:dependencies [[conch "0.2.1"]] ``` ## Usage @@ -158,6 +158,25 @@ feeding to a process. They are `stream-to` and `feed-from`. These functions are what the utility functions are built off of, and you can probably use them to stream to and feed from your own special places. +You might want to fire off a program that listens for input until EOF. +In these cases, you can feed it data for as long as you want and just +tell it when you are done. Let's use `pygmentize` as an example: + +```clojure +user=> (def proc (sh/proc "pygmentize" "-fhtml" "-lclojure")) +#'user/proc +user=> (sh/feed-from-string proc "(+ 3 3)") +nil +user=> (sh/done proc) +nil +user=> (sh/stream-to-string proc :out) +"
(+ 3 3)\n