28 lines
613 B
Org Mode
28 lines
613 B
Org Mode
#+TITLE: repl
|
|
|
|
Send a Lisp form to the running Passepartout daemon REPL (port 9105).
|
|
Prints the response from the daemon.
|
|
|
|
== Usage
|
|
|
|
#+begin_src shell
|
|
repl "(+ 1 2)"
|
|
echo "(+ 1 2)" | repl
|
|
#+end_src
|
|
|
|
== Environment
|
|
|
|
- ~PASSEPARTOUT_HOST~ — daemon host (default 127.0.0.1)
|
|
- ~PASSEPARTOUT_PORT~ — daemon port (default 9105)
|
|
- ~PASSEPARTOUT_REPL_TIMEOUT~ — timeout seconds (default 10)
|
|
|
|
== Protocol
|
|
|
|
Connects via framed TCP (6-byte hex length prefix). Sends a
|
|
~:repl-eval~ sensor event and reads the response. Expects the
|
|
daemon to be running (~passepartout daemon~).
|
|
|
|
== Dependencies
|
|
|
|
Perl (stdlib only).
|