cli-calctool 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -10
- package/install.mjs +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# cli-
|
|
1
|
+
# cli-calctool
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**calctool 多 IDE 安装器** —— 一条命令从 cli.tax 拉取并分发到本机所有已装 IDE。
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npx cli-blueprint@latest install
|
|
@@ -8,7 +8,7 @@ npx cli-blueprint@latest install
|
|
|
8
8
|
|
|
9
9
|
默认包含:
|
|
10
10
|
- `blueprint`(CLI.Tax 工程规划 skill,`https://cli.tax/wvz6zmRWmX`)
|
|
11
|
-
- `calctool`(万能计算工具生成器,`https://cli.tax/
|
|
11
|
+
- `calctool`(万能计算工具生成器,`https://cli.tax/KKyA6xljUX`)
|
|
12
12
|
|
|
13
13
|
## 这是什么机制?
|
|
14
14
|
|
|
@@ -79,18 +79,17 @@ node install.mjs uninstall # 从相同目标卸载本包安装的 skill
|
|
|
79
79
|
## 分发给别人
|
|
80
80
|
|
|
81
81
|
### 方式 A:npm 一条命令(推荐,最简单)
|
|
82
|
-
已发布到 npm(`cli-
|
|
82
|
+
已发布到 npm(`cli-calctool@0.2.0`),使用者只需:
|
|
83
83
|
```bash
|
|
84
|
-
npx cli-
|
|
85
|
-
npx cli-calctool@latest install # 同样内容(calctool 命名入口)
|
|
84
|
+
npx cli-calctool@latest install # 从 cli.tax 拉取 calctool 并分发到本机所有已装 IDE
|
|
86
85
|
```
|
|
87
|
-
自动完成:从 cli.tax 拉取
|
|
86
|
+
自动完成:从 cli.tax 拉取 calctool → 检测本机已装 IDE → 分发到每个 IDE。
|
|
88
87
|
更新:同一命令(`@latest` 自动拉新版),且每次 install 会对比 cli.tax 最新版本并提示 ⤴。
|
|
89
88
|
|
|
90
89
|
### 方式 B:Git 仓库
|
|
91
90
|
```bash
|
|
92
|
-
git clone https://github.com/88208555/
|
|
93
|
-
cd
|
|
91
|
+
git clone https://github.com/88208555/calctool-clitax.git
|
|
92
|
+
cd calctool-clitax
|
|
94
93
|
node install.mjs install
|
|
95
94
|
```
|
|
96
95
|
更新:`git pull && node install.mjs update`(install/update 会对比已装版本与 cli.tax 最新版本并提示)。
|
|
@@ -100,7 +99,7 @@ node install.mjs install
|
|
|
100
99
|
IDE 每次读取即可见版本与更新入口。主动检查:
|
|
101
100
|
```bash
|
|
102
101
|
node install.mjs check # 遍历本机已装 IDE,对比 cli.tax 最新版本
|
|
103
|
-
npx cli-
|
|
102
|
+
npx cli-calctool@latest check # 单包检查
|
|
104
103
|
```
|
|
105
104
|
|
|
106
105
|
### 方式 C:直接用 clitaxio(只装单个 IDE,作为对照)
|
package/install.mjs
CHANGED
|
@@ -431,6 +431,8 @@ if (cmd === 'list') {
|
|
|
431
431
|
node install.mjs check
|
|
432
432
|
node install.mjs uninstall
|
|
433
433
|
node install.mjs list
|
|
434
|
-
node install.mjs ides
|
|
434
|
+
node install.mjs ides
|
|
435
|
+
|
|
436
|
+
npm 安装后(npx cli-blueprint@latest / npx cli-calctool@latest)用法相同。`)
|
|
435
437
|
process.exit(1)
|
|
436
438
|
}
|