mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-06-29 01:45:54 +08:00
refactor: CLI 二进制名从 patheditor-cli 改为 patheditor
添加 [[bin]] name = "patheditor",安装后即可直接使用 patheditor 命令。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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"] }
|
||||||
|
|||||||
Reference in New Issue
Block a user