kresc possible improvements
-
refactor the complete
function into multiple functions -- currently it's kind of spaghetti code -
 Tab-completion could suggest function parameters. E.g. net.close(<tab>
could suggest(string addr, number port)
as Lua prints when you try to callnet.close()
. (@pspacek) -
Commands from kresc
are not logged bykresd
. (@pspacek) -
stat = worker.stats()
followed bystat.<TAB>
does not auto-complete. (@pspacek) -
For better UX, in future I'd like to add some flag to kresd that starts it "in background" and drops the user into kresc. Or perhaps the other way around – add it as a flag to kresc, e.g. just --
and args for kresd after that. (@vcunat) -
Another future TODO: make it build-time configurable so that distros can specify the default socket if none is on the command-line, e.g. /run/kresd/control
is used in Debian-like packages IIRC. That way users might just runsudo kresc
on their systems using pre-packagedkresd
. (@vcunat) -
How does one quit from the client? I thought ^D
should work but it doesn't seem to (anymore?). (@vcunat) -
solve problem with tables with number keys
Feel free to add your own suggestion.