feat(cli): use rustyline for cmd entry, which allows for richer editing

This commit is contained in:
Khaïs COLIN 2025-05-04 18:36:43 +02:00
parent 6b49d3ca14
commit 3d4ab2e2e4
4 changed files with 158 additions and 15 deletions

View file

@ -191,7 +191,20 @@ CLOCK: [2025-05-04 dim. 14:01]--[2025-05-04 dim. 14:14] => 0:13
* TODO use a better readline impl
** DONE inform myself on the different alternatives and decide on one
i will use rustyline, since it seems like the most feature-complete
** DONE do the impl
** TODO tweak it to make history work
* TODO handle non-interactive input better
* TODO cli tests using insta-cmd
https://insta.rs/docs/cmd/
* WAIT autocompletion
needs a more complicated parser for that to make sense
* WAIT tweak rustyline it to make multiline entry work
need to terminate commands with semicolons for that to make sense