From dc36d633021d2da14ec91e2bdb3f670d192ed349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E8=88=AA=E5=AE=87?= <3364451258@qq.com> Date: Fri, 29 May 2026 11:21:18 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20CLI=20=E4=BA=8C=E8=BF=9B=E5=88=B6?= =?UTF-8?q?=E5=90=8D=E4=BB=8E=20patheditor-cli=20=E6=94=B9=E4=B8=BA=20path?= =?UTF-8?q?editor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加 [[bin]] name = "patheditor",安装后即可直接使用 patheditor 命令。 Co-Authored-By: Claude Opus 4.7 --- README.md | 5 ++++- cli/Cargo.toml | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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"] }