Skip to content
This repository was archived by the owner on May 19, 2026. It is now read-only.

Commit eafbfd0

Browse files
authored
Command registry (#4)
* Update filename when switching current history file * Add filename to history file instead of updating it separately * Add tests for history file filename * Move commands to separate functions * Remove duplicate lowercase call * Extract commands from the main file * Add a few more tests * Remove unnecessary comment * Add default test for config * Cleanup, increment version and add changelogs * Use eprintln instead * Remove unused import
1 parent 646d52e commit eafbfd0

10 files changed

Lines changed: 441 additions & 433 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 199 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
[package]
22
name = "sllama"
3-
version = "0.1.7"
3+
version = "0.1.8"
44
edition = "2024"
55

66
[dependencies]
77
clap = { version = "4.5.39", features = ["derive"] }
8-
crossterm = { version = "0.29.0" }
98
serde = { version = "1.0.219", features = ["derive"] }
109
toml = "0.8.23"
1110
tempfile = "3.20.0"

LICENSES/crossterm-MIT

Lines changed: 0 additions & 21 deletions
This file was deleted.

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.1.8 - 2025-06-09
4+
5+
_Refactor command handling and remove crossterm_
6+
37
## 0.1.7 - 2025-06-08
48

59
_Add `edit` command_

readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ You can tell where you have previously responded by --- AI Response --- (added a
149149
- [serde](https://github.com/serde-rs/serde) - [MIT](LICENSES/serde-MIT)
150150
- [toml](https://github.com/toml-rs/toml) - [MIT](LICENSES/toml-MIT)
151151
- [clap](https://github.com/clap-rs/clap) - [MIT](LICENSES/clap-MIT)
152-
- [crossterm](https://github.com/crossterm-rs/crossterm) - [MIT](LICENSES/crossterm-MIT)
153152
- [tempfile](https://github.com/Stebalien/tempfile) - [MIT](LICENSES/tempfile-MIT)
154153
- [rustyline](https://github.com/kkawakam/rustyline) - [MIT](LICENSES/rustyline-MIT)
155154

0 commit comments

Comments
 (0)