It would be great for quick debugging and learning lua scripts. Allowing SHIFT+ENTER in the middle of a string to allow it to be multiline would be great, or just starting a newline if the string isn't closed would be even better.
Comment From: 4n70w4
any news?
Comment From: itamarhaber
I've also wished for that ability numerous times. @artix75 do you think something like this is possible?
Comment From: artix75
@itamarhaber @JasonGoemaat I'll try to see how it can be handled via linenoise
Comment From: jacobbogers
Is this working yet
Comment From: itamarhaber
Not yet - still waiting to be picked up.
Comment From: jacobbogers
ok how do you do it currently - write lua code - make it single line (use sed) - use eval
Comment From: itamarhaber
For EVAL purposes, there's the handy redis-cli --eval /path/to/script [key [...]] , [arg [...]] form that make this a breeze.
Comment From: jacobbogers
How do i do step by step debugging? hope its not all on one line 8-)
Comment From: itamarhaber
How do i do step by step debugging? hope its not all on one line
--eval doesn't do the sed-equiv, but loads the script from the file with newlines and everything. For a stepping debugger, refer to the built-in redis-cli --ldb invocation (same format as --eval btw).