Add this to your project.clj :dependencies list:
[org.clojars.number23/commons-lib "0.2.2"]
and checkout API documentation for details.
(use 'org.clojars.number23.commons-lib.io)
(def host (prompt-re "Please choose host (dev or prd)" #"dev|prd"))
(def user (prompt-read "User"))
Copyright (C) 2011-2012 number23_cn https://twitter.com/number23_cn
Distributed under the Eclipse Public License, the same as Clojure. See the LICENSE file for details.