chore: rearrange directories

This commit is contained in:
iff 2024-12-08 16:52:53 +01:00
parent d5fb7462e0
commit 4c9aac45a8
46 changed files with 11 additions and 18 deletions

View file

@ -1,12 +1,12 @@
[workspace] [workspace]
resolver = "2" resolver = "2"
members = [ members = [
"pay-respects", "core",
"pay-respects-parser", "parser",
"pay-respects-utils", "utils",
# optional modules # optional modules
"pay-respects-module-runtime-rules", "module-runtime-rules",
"pay-respects-fallback-request-ai", "module-request-ai",
] ]
[profile.release] [profile.release]

View file

@ -3,9 +3,9 @@
Typed a wrong command or don't know what to do? Pay Respects will suggest a fix to your console command by simply pressing `F`! Typed a wrong command or don't know what to do? Pay Respects will suggest a fix to your console command by simply pressing `F`!
- 🚀 **Blazing fast suggestion**: You won't notice any delay for asking suggestions! - 🚀 **Blazing fast suggestion**: You won't notice any delay for asking suggestions!
- 🎯 **Accurate results**: Suggestions are verified before being prompted to the user, no `sudo` suggestions when you are using `doas`!
- ✏️ **Easy to write rules**: You don't need to know Rust. The rules are written in a TOML file! - ✏️ **Easy to write rules**: You don't need to know Rust. The rules are written in a TOML file!
- 🔩 **Modular**: TOML not your taste? Add sources with your favorite language with a custom module! - 🔩 **Modular**: TOML not your taste? Add sources with your favorite language with a custom module!
- 🎯 **Accurate results**: Suggestions are verified before being prompted to the user, no `sudo` suggestions when you are using `doas`!
- 🤖 **AI Support**: AI module comes in aid when there is no rule for your error! - 🤖 **AI Support**: AI module comes in aid when there is no rule for your error!
- 🪶 **Tiny binary size**: Not even 1MB for core features! - 🪶 **Tiny binary size**: Not even 1MB for core features!
@ -119,17 +119,10 @@ curl -sSfL https://raw.githubusercontent.com/iffse/pay-respects/main/install.sh
> cargo install --path . > cargo install --path .
> ``` > ```
> Features:
>
> - `runtime-rules`: Read rules in runtime
> - `request-ai`: Request AI for suggestion
> - `libcurl`: Dynamically link `libcurl` for requests, which requires openssl at compile time
> - Only matters to package maintainers, as by turning it off gives fewer headaches when cross-compiling
</details> </details>
## Rule Files ## Rules & Modules
See [writing rules](./rules.md) for how to write rules. See [writing rules](./rules.md) for how to write rules.

View file

@ -21,5 +21,5 @@ regex-lite = "0.1"
inquire = "0.7.5" inquire = "0.7.5"
pay-respects-parser = { version = "0.3.2", path = "../pay-respects-parser" } pay-respects-parser = { version = "0.3.2", path = "../parser" }
pay-respects-utils = {version = "0.1.0", path = "../pay-respects-utils"} pay-respects-utils = {version = "0.1.0", path = "../utils"}

View file

@ -8,4 +8,4 @@ regex-lite = "0.1"
toml = { version = "0.8" } toml = { version = "0.8" }
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
pay-respects-utils = {version = "0.1.0", path = "../pay-respects-utils"} pay-respects-utils = {version = "0.1.0", path = "../utils"}

2
rules
View file

@ -1 +1 @@
pay-respects/rules core/rules