Hello, This patch adds multi-line mode support to the CLI. To keep a backward compatible behaviour, this mode is only available when enabled with the 'multiline' command. Once enabled, _ALL_ commands (except 'quit') must end with an empty line (LF). This mode can also be used with pipelined commands or in interactive mode if the 'prompt' command was issued beforehand.
When interactive mode and multi-line mode are both enabled, the prompt will change from '\n> ' to '+ ' to have a visual feedback that the current request is not complete. A second patch is attached: it adds a Perl script (and some other files used for the tests) to test the CLI with different use cases. I don't know if it can be merged as it but it can still be used to validate that nothing was broken while adding the multi-line mode. Simply launch: perl tests/cli.pl to run the tests. Examples: === $ echo -e "multiline;set ssl ocsp-response $(base64 ocsp.der)\n" | socat /tmp/sock1 - OCSP Response updated! $ === $ echo -e "multiline;set\nserver\nbk/srv\nstate\nready\n" | socat /tmp/sock1 - $ === -- Aurélien Nephtali
0001-MEDIUM-cli-Add-multi-line-mode-support.patch
Description: Binary data
0001-TESTS-Add-a-script-to-test-the-CLI.patch
Description: Binary data

