Permalink
Browse files

Save for adding client to interactive session.

  • Loading branch information...
1 parent d1f752a commit cc63d03bc338b2f234bb1cf0d138341f7303504a @drewr drewr committed Oct 7, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/esperanto/interactive.clj
@@ -1,5 +1,6 @@
(ns esperanto.interactive
- (:gen-class))
+ (:gen-class)
+ (:use [esperanto.client :only [make-transport-client]]))
(def welcome "ElasticSearch Shell")
@@ -11,7 +12,8 @@
(with-out-str
(println "Type as much of a command as necessary.")
(let [f "%-20s %-60s"
- lines [["cluster NAME" "Change to cluster NAME."]
+ lines [["cluster NAME HOST:PORT"
+ "Change to cluster NAME listening on HOST:PORT."]
["exit" "Leave essh (or ^D)."]]]
(doseq [line lines]
(println (apply format f line))))))

0 comments on commit cc63d03

Please sign in to comment.