aboutsummaryrefslogtreecommitdiff
path: root/json-rpc-shell.c
Commit message (Collapse)AuthorAgeFilesLines
* Bump liberty, fix calloc argument orderPřemysl Eric Janouch2024-08-081-4/+4
|
* Fix libedit history behaviourPřemysl Eric Janouch2022-09-041-10/+36
|
* Fix newer libedit (2021-08-29)Přemysl Eric Janouch2021-10-281-13/+5
|
* Reflect the sibling project's new namePřemysl Eric Janouch2021-08-061-1/+1
| | | | Better keep all schizophreny in my own head, rather than all projects.
* json-rpc-shell: respect the NO_COLOR env. variablePřemysl Eric Janouch2021-07-071-1/+1
|
* WebSocket: send a User-Agent headerPřemysl Eric Janouch2020-10-151-0/+2
|
* json-rpc-test-server: add a simple co-process modePřemysl Eric Janouch2020-10-151-2/+2
| | | | | | A disgusting copy-paste but it will have to do for now. Closes #6
* WebSocket: adapt to common "await" infrastructurePřemysl Eric Janouch2020-10-141-79/+9
|
* Add a backend for co-processesPřemysl Eric Janouch2020-10-141-10/+432
| | | | | | | | | Targets language servers. In this first stage, we don't need to support bi-directionality, although it's a requirement for finishing this task. Updates #4
* This software is no longer simplePřemysl Eric Janouch2020-10-141-2/+2
|
* WebSocket: some clean-upPřemysl Eric Janouch2020-10-141-37/+26
|
* Split out a http-parser wrapperPřemysl Eric Janouch2020-10-141-111/+152
|
* Simplify the FAIL macroPřemysl Eric Janouch2020-10-141-5/+1
|
* WebSocket: fix upgrade processingPřemysl Eric Janouch2020-10-141-14/+6
| | | | | When http-parser sets the upgrade field, it checks for status code 101 and even resolves our TODO about checking the entire Connection header.
* WebSockets -> WebSocketPřemysl Eric Janouch2020-10-141-4/+4
| | | | | This is the correct name of the protocol, usage of the word "WebSockets" should be limited.
* Support reading OpenRPC documents from a filePřemysl Eric Janouch2020-10-131-18/+29
| | | | Bump liberty, it generated incorrect help messages.
* Factor out init_backend()Přemysl Eric Janouch2020-10-131-27/+31
| | | | The main() function is still way too long.
* CleanupPřemysl Eric Janouch2020-10-131-14/+17
| | | | Prevent the last fuck-up from happening again.
* Add libedit autocompletion back inPřemysl Eric Janouch2020-10-131-0/+4
| | | | I've mistakenly removed it in the M-Enter change.
* libedit: bind M-Enter to newline-insert as wellPřemysl Eric Janouch2020-10-131-5/+12
|
* OpenRPC: avoid eating HTTP/transport errorsPřemysl Eric Janouch2020-10-131-15/+22
|
* Implement tab completion under libeditPřemysl Eric Janouch2020-10-131-23/+137
| | | | | | | | | | | I haven't tested it with real wide characters but it will have to do. I wasn't even sure if this piece of crap could be coerced into doing this at first, so it's a win for me. It uses a variation of the code in degesch where we /don't/ want to print the list of candidates on partial failure. Updates #1
* Bump libertyPřemysl Eric Janouch2020-10-101-59/+8
| | | | resolve_relative_runtime_unique_filename() used to have a bug.
* Readline: add trivial OpenRPC supportPřemysl Eric Janouch2020-10-101-6/+108
| | | | So far hidden under a switch and only for this frontend.
* Reorder help message entries a bitPřemysl Eric Janouch2020-10-101-6/+6
| | | | Should be both more useful and more alphabetic this way.
* Fix use of possibly uninitialised memoryPřemysl Eric Janouch2020-10-101-1/+1
|
* Split make_json_rpc_call() in halfPřemysl Eric Janouch2020-10-101-13/+24
|
* Slightly refactor make_json_rpc_call()Přemysl Eric Janouch2020-10-101-36/+29
|
* Readline: make M-Enter insert a newlinePřemysl Eric Janouch2020-10-091-0/+12
| | | | | | | Before, it was only possible with C-v C-j but it's too useful to require such an awkward method. There is a precedent in, e.g., zsh and fish for the new binding.
* Fix handling terminal resizes while the terminal is suspendedPřemysl Eric Janouch2020-10-091-0/+2
| | | | GNU Readline has a misfeature.
* Readline: fix a dormant bug in prompt changesPřemysl Eric Janouch2020-10-091-5/+3
| | | | For details, see a similar change in degesch from uirc3.
* Use saner defaultsPřemysl Eric Janouch2020-09-051-13/+17
| | | | | | | | So that most of the time users won't need to use any switches. --pretty-print has been inverted into jq's --compact-output, and --auto-id has been replaced with barely, if-at-all useful --null-as-id.
* Write a nice new man page in AsciiDocPřemysl Eric Janouch2020-09-051-3/+6
| | | | | | | | | Taking some preliminary steps for inclusion in Linux distributions. The help message has been slightly improved and the README extended, with part of it now residing in the man page. One less GNU dependency, for what it's worth.
* Move "connecting..." messages to the debug modePřemysl Eric Janouch2020-09-051-1/+1
| | | | So that the --verbose option does only one thing.
* Fix libedit a bit more and discourage from using itPřemysl Eric Janouch2020-09-021-2/+12
|
* Update copyright yearsPřemysl Eric Janouch2020-09-011-1/+1
|
* Warn on unexpected "id" fieldsPřemysl Eric Janouch2020-09-011-17/+22
|
* Make the verbose mode also show the raw inputPřemysl Eric Janouch2020-09-011-1/+15
| | | | | To make it more useful for debugging. We might also tie this to the --debug option, though that would be a bit chaotic.
* Strip trailing newlines from editor outputPřemysl Eric Janouch2020-09-011-3/+10
|
* Fix libedit crashPřemysl Eric Janouch2020-09-011-1/+2
| | | | | Again, I have no idea why it started to happen, it just occured to me to try to change the call, and it turns out out it works.
* Fix prompt attributes under libeditPřemysl Eric Janouch2020-09-011-1/+1
| | | | I can only guess why this works, and I'm not sure I want to /know/.
* Name changePřemysl Eric Janouch2020-09-011-1/+1
|
* Fix running helper programsPřemysl Janouch2019-09-231-4/+11
| | | | A bug was introduced in 5c38087.
* Relicense to 0BSD, update mail addressPřemysl Janouch2018-06-241-3/+2
| | | | | | | | | I've come to the conclusion that copyright mostly just stands in the way of software development. In my jurisdiction I cannot give up my own copyright and 0BSD seems to be the closest thing to public domain. The updated mail address, also used in my author/committer lines, is shorter and looks nicer. People rarely interact anyway.
* Display unexpected messages, tooPřemysl Janouch2018-05-111-1/+9
|
* Fix UTF-8 validationPřemysl Janouch2018-05-111-1/+1
|
* Fix sent close code when failing the connectionPřemysl Janouch2018-05-111-1/+1
|
* Better fix for EOF handling with WebSocketsPřemysl Janouch2018-04-161-6/+3
| | | | Used to spin.
* Fix EOF handling with WebSocketsPřemysl Janouch2018-04-161-0/+8
|
* Bump liberty, fix GNUC detection, update READMEPřemysl Janouch2018-04-161-40/+22
|