mfikes / ambly

ClojureScript REPL into embedded JavaScriptCore
http://ambly.fikesfarm.com
Eclipse Public License 1.0
541 stars 21 forks source link

Provide a way to pick target device/simulator #31

Closed mfikes closed 9 years ago

mfikes commented 9 years ago

Bonjour could discover a few available targets. Currently the code simply picks the first and connects to it. Provide a way to let the user choose a discovered device, and a way to refresh, looking for more.

mfikes commented 9 years ago

Implemented a simple command-line UI.

Here is a transcript:

orion:Clojure mfikes$ script/jscrepljs 
To quit, type: :cljs/quit

[1] iPhone Simulator

[r] Refresh

Choice: r

[1] Mike's iPod touch
[2] iPhone Simulator

[r] Refresh

Choice: 1

Connecting to Mike's iPod touch ...

ClojureScript:cljs.user> (+ 3 4)
7
ClojureScript:cljs.user>