Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Takahiro Hozumi committed Nov 5, 2011
1 parent b0538fc commit 0285e9b
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions README.md
Expand Up @@ -14,17 +14,19 @@

(exec/sh "ls" "-l" {:dir "/"}) ; Last argument can be recognized as an option map.

option
*:dir* **(String or java.io.File)** override the process dir.
*:in* **(String or InputStream)** is fed to the sub-process's stdin.
*:out* **(OutputStream)** is used as the sub-process's stdout.
*:err* **(OutputStream)** is used as the sub-process's stderror.
*:watchdog* **(int)** set watchdog timer in ms.
*:env* **(Map)** The environment for the new process. If null, the environment of the current process is used.
*:add-env* **(Map)** The added environment for the new process.
*:as-success* **(int)** is regarded as sucess exit value.
*:as-successes* **(sequence)** are regarded as sucess exit value.
*:result-handler-fn* **(function)** A function, which will be called with promiss, in, out, err and option map, create an instance of org.apache.commons.exec.ExecuteResultHandler. You should close in, out, and err stream manually.

options

* **:dir** *(String or java.io.File)* override the process dir.
* **:in** *(String or InputStream)* is fed to the sub-process's stdin.
* **:out** *(OutputStream)* is used as the sub-process's stdout.
* **:err** *(OutputStream)* is used as the sub-process's stderror.
* **:watchdog** *(int)* set watchdog timer in ms.
* **:env** *(Map)* The environment for the new process. If null, the environment of the current process is used.
- **:add-env** *(Map)* The added environment for the new process.
* **:as-success** *(int)* is regarded as sucess exit value.
* **:as-successes** *(sequence)* are regarded as sucess exit value.
* **:result-handler-fn** *(function)* A function, which will be called with promiss, in, out, err and option map, create an instance of org.apache.commons.exec.ExecuteResultHandler. You should close in, out, and err stream manually.

## Installation
Leiningen [org.clojars.hozumi/clj-commons-exec "1.0.0-SNAPSHOT"]
Expand Down

0 comments on commit 0285e9b

Please sign in to comment.