feat(cli): use rustyline for cmd entry, which allows for richer editing
This commit is contained in:
parent
6b49d3ca14
commit
3d4ab2e2e4
4 changed files with 158 additions and 15 deletions
13
notes.org
13
notes.org
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue