Janet repl things

This commit is contained in:
Scott Richmond 2024-01-07 20:09:01 -05:00
parent 1520b1d8e7
commit 2cbc39029c
2 changed files with 12 additions and 3 deletions

1
.gitignore vendored
View File

@ -29,3 +29,4 @@ node_modules/
.cljs_node_repl/ .cljs_node_repl/
.helix/ .helix/
target/repl-port target/repl-port
.repl-buffer

View File

@ -3,7 +3,15 @@ build:
shadow-cljs release module shadow-cljs release module
repl: repl:
kitten @ launch --type=os-window --allow-remote-control --cwd=current --title=hx_repl:ludus lein repl kitten @ launch --type=os-window --allow-remote-control --cwd=current --title=hx_repl:ludus janet -s
repeater:
kitten @ launch --type=os-window --allow-remote-control --cwd=current --title=hx_repl:ludus bat
eval:
sd "$" "\n" | sd "(\n)+" "\n" | kitten @ send-text -m "title:hx_repl:ludus" --stdin
buffer:
sd "$" "\n" > .repl-buffer
kitten @ send-text -m "title:hx_repl:ludus" --from-file .repl-buffer
send:
kitten @ send-text -m "title:hx_repl:ludus" --stdin