Add --rpc option for roc repl - #9923
Conversation
|
@ageron hm, I'd really rather not introduce JSON into any of our CLI or compiler outputs... 😅 Is there another way we could do this? |
|
Hi @rtfeldman , |
|
|
||
| // Set version to 4 | ||
| bytes[6] = (bytes[6] & 0x0f) | 0x40; | ||
| // Set variant to RFC 4122 |
There was a problem hiding this comment.
4122 is technically obsoleted by https://datatracker.ietf.org/doc/rfc9562/.
|
Thank you for your contribution! Sometimes PRs end up staying open for a long time without activity, which can make the list of open PRs get long and time-consuming to review. To keep things manageable for reviewers, this bot automatically closes PRs that haven’t had activity in 60 days. This PR hasn’t had activity in 30 days, so it will be automatically closed if there is no more activity in the next 30 days. Keep in mind that PRs marked |
This PR adds the
--rpcoption toroc repl.It starts the REPL in RPC mode, where the inputs and outputs are JSON objects. For example
{"method": "repl.start"}.Methods:
repl.startrepl.stoprepl.resetrepl.evaluaterepl.autocompleterepl.inspectFor example: