feat(cli): readline history

This commit is contained in:
Khaïs COLIN 2025-05-10 10:20:26 +02:00
parent fe66326956
commit 9b75cb6144
Signed by: logistic-bot
SSH key fingerprint: SHA256:3zI3/tx0ZpCLHCLPmEaGR4oeYCPMCzQxXhXutBmtOAU
3 changed files with 58 additions and 9 deletions

View file

@ -189,24 +189,24 @@ CLOCK: [2025-05-04 dim. 14:01]--[2025-05-04 dim. 14:14] => 0:13
* DONE remove old FromStr parser implementation
* TODO use a better readline impl
* DONE 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 make history work
** DONE make history work
*** DONE have the rl instance be spawned from main
*** TODO figure out how to locate the app data directory on linux
*** DONE figure out how to locate the app data directory on linux
*** TODO create our own app data directory
*** DONE create our own app data directory
*** TODO load and save the history from a file in this directory
*** DONE load and save the history from a file in this directory
* TODO handle non-interactive input better
* DONE handle non-interactive input better
* TODO cli tests using insta-cmd
https://insta.rs/docs/cmd/