Skip to content
/ shake Public
forked from sunng87/shake

clojure library that shakes your shell

Notifications You must be signed in to change notification settings

runexec/shake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shake

A Clojure library shakes your shell.

Usage

Leiningen

[shake "0.1.1"]

Just That Simple

(use 'shake.core)

;; any shell command ...
(uname -a) ;;returns a #<UNIXProcess java.lang.UNIXProcess@1833160>

;; if you just want to see the output:
(binding [*print-output* true]
  (uname -a))

I/O

shake extends Process with clojure's IOFactory. So you can (input-stream) or (output-stream) the process to get a streamed I/O.

;; print output of `uname -a`
(print (slurp (input-stream (uname -a))))

Too Slow to Load (Verbose Clojure Warnings) ?

By default, shake indexes all executables under your PATH. To override this behavior, set environment variable SHAKE_PATH before you initialize the namespace shake.core.

License

Copyright © 2012 Sun Ning [email protected]

Distributed under the Eclipse Public License, the same as Clojure.

About

clojure library that shakes your shell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published