limbo/cli
Pekka Enberg 3e6ac7c4a0 Merge 'Save history on exit' from Piotr Rżysko
Before this change, the history was only saved when the shell was
interrupted (e.g., Ctrl-C pressed twice). With this change, history is
now also saved when the `.exit` or `.quit` commands are used.
I attempted to add shell tests to cover the changes introduced in this
PR, but emulating a terminal/TTY that would work cross-platform seems to
require significant changes to `TestLimboShell` and `LimboShell`. For
example, the `pty` module [currently doesn't support
Windows](https://bugs.python.org/issue41663). I'm open to experimenting,
but I’m unsure if complicating these classes is worthwhile, as saving
history doesn't seem to be critical.
Additionally, it might be worth considering a refactor of the CLI so
that exit and cleanup operations are performed in one place.

Reviewed-by: Preston Thorpe (@PThorpe92)

Closes #1414
2025-04-29 21:50:41 +03:00
..
commands Add the .indexes command 2025-04-26 12:27:08 +03:00
docs/internal docs for cli 2025-03-30 02:41:48 -03:00
app.rs Merge 'Save history on exit' from Piotr Rżysko 2025-04-29 21:50:41 +03:00
build.rs adding table colors 2025-03-06 15:52:20 -03:00
Cargo.toml Switch to using std::io::IsTerminal::is_terminal 2025-04-21 01:03:31 -03:00
helper.rs remove error debug 2025-04-04 17:44:34 -03:00
input.rs Add the .indexes command 2025-04-26 12:27:08 +03:00
main.rs Switch to using std::io::IsTerminal::is_terminal 2025-04-21 01:03:31 -03:00
opcodes_dictionary.rs fix: lint warnings 2024-07-08 22:43:11 +05:30
SQL.sublime-syntax highlight candidate 2025-03-06 16:33:23 -03:00