4 个版本
| 0.1.5 | 2023年2月25日 | 
|---|---|
| 0.1.4 | 2023年2月13日 | 
#5 in #mistakes
12KB
180 行
the-heck
由 thefuck 启发,使用 Rust 编写的命令行纠正工具。
功能
the-heck 是一个用于纠正您命令行错误的工具。例如
(personal) ➜  the_heck git:(main) git stats 
git: 'stats' is not a git command. See 'git --help'.
The most similar command is
        status
(personal) ➜  the_heck git:(main) heck
✔ Is this command correct? [Press Enter]  · status
Fix successful!
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
(personal) ➜  the_heck git:(main) 
版本 0.1.5 仍在开发中。它只支持少量命令,并且存在已知错误。
当前支持的程序和参数
git + add ., branch, restore --staged ., restore ., status
cargo + build, clippy, fmt, install, run, test
安装
假设您已正确安装 Rust 和 Cargo,只需在您希望的项目目录中运行以下命令
cargo add the_heck
依赖项
~2.4–10MB
~58K SLoC