refactor: CLI 二进制名从 patheditor-cli 改为 patheditor

添加 [[bin]] name = "patheditor",安装后即可直接使用 patheditor 命令。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-29 11:21:18 +08:00
parent 6822ab9f3e
commit dc36d63302
2 changed files with 8 additions and 1 deletions
+4 -1
View File
@@ -128,7 +128,7 @@ sequenceDiagram
```mermaid ```mermaid
sequenceDiagram sequenceDiagram
actor U as 用户 actor U as 用户
participant CLI as patheditor-cli participant CLI as patheditor
participant Core as Rust core 库 participant Core as Rust core 库
participant Win as Windows participant Win as Windows
@@ -153,6 +153,9 @@ sequenceDiagram
# 安装 # 安装
cargo install --path cli cargo install --path cli
# 安装后可直接使用:
patheditor --help
# 查看 PATH # 查看 PATH
patheditor list --system --json patheditor list --system --json
+4
View File
@@ -6,6 +6,10 @@ edition.workspace = true
license.workspace = true license.workspace = true
authors.workspace = true authors.workspace = true
[[bin]]
name = "patheditor"
path = "src/main.rs"
[dependencies] [dependencies]
path-editor-core = { path = "../core" } path-editor-core = { path = "../core" }
clap = { version = "4", features = ["derive"] } clap = { version = "4", features = ["derive"] }