mach
mach copied to clipboard
Launch a shell repl from within mach
Hello again, again :smile: (and sorry to bother so much)
Today I tried to launch lumo straight from mach but failed. It looks like the main process shuts down as soon as the "pipeline" is done. So a task like this:
repl {depends [js clj]
;; below is a temporary hack waiting for mach to include lumo.io
update! #$ ["lumo" "-c" (.toString (js/$$LUMO_GLOBALS.fs.readFileSync "cp")) "-r"]}
prints the lumo preamble and then quits.
I know maybe mach has not designed for this purpose, but I felt I could ask your thoughts.
Hi Andrea - just to let you know we really appreciate all this feedback. Mach, as you know, is still in an experimental phase, and the clojurescript-on-the-server tech is rapidly progressing so stability isn't an option. We'll reflect on these issues soon and discuss with you of course, but in the meantime feel free to keep adding issues.
A build tool towards this direction is indeed exciting and so I am the one who thanks you for it 😀 I will try to help if I have bandwidth of course. In this particular case, still don't know enough of what should happen, but the other issues are maybe more approachable.
Currently the shell repl seems to hang after you type 'exit', not sure what is going on there right now.
I'm not sure if this is related to this issue, but I'm seeing the same behaviour when issuing a terraform destroy from within mach, which asks for confirmation
Do you really want to destroy?
Terraform will destroy all your managed infrastructure, as shown above.
There is no undo. Only 'yes' will be accepted to confirm.
Enter a value:
But after entering yes, it hangs.