diff --git a/README.md b/README.md index 69336db..1775a55 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ sequenceDiagram ```mermaid sequenceDiagram actor U as 用户 - participant CLI as patheditor-cli + participant CLI as patheditor participant Core as Rust core 库 participant Win as Windows @@ -153,6 +153,9 @@ sequenceDiagram # 安装 cargo install --path cli +# 安装后可直接使用: +patheditor --help + # 查看 PATH patheditor list --system --json diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 35b3d38..421f571 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -6,6 +6,10 @@ edition.workspace = true license.workspace = true authors.workspace = true +[[bin]] +name = "patheditor" +path = "src/main.rs" + [dependencies] path-editor-core = { path = "../core" } clap = { version = "4", features = ["derive"] }