You are reading a single comment by @Snerkle and its replies.
Click here to read the full conversation.
-
Referring back to post #9 above:
How about a new command line option, say
-x
that uses.expr()
and doesn't impact existing users of-e
?
Yes, it's a pain - It's under the 'To Do' list on https://github.com/espruino/EspruinoTools - sadly I have my work cut out doing everything else though!
At the moment the CLI just sends that command straight to Espruino, so it doesn't really have a way of parsing the result out.
I guess it could change to using
.expr()
instead (which actually sends'console.log("<<"+"<<<"+JSON.stringify('+expressionToExecute+')+">>>"+">>")'
), but I wonder if that might cause some problems with code that worked previously.