batch-exec-cli 1.3.0 → 1.3.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026-present, chandq
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  高效批量命令执行工具,能够遍历目录内所有直接子目录并执行命令。
4
4
 
5
+ [![release status](https://github.com/chandq/batch-exec-cli/actions/workflows/release.yml/badge.svg)](https://github.com/chandq/batch-exec-cli/actions/workflows/release.yml)
6
+ [![batch-exec-cli](https://img.shields.io/github/package-json/v/chandq/batch-exec-cli?style=flat-square)](https://www.npmjs.com/package/batch-exec-cli)
7
+
5
8
  ## 功能特性
6
9
 
7
10
  - 🚀 高效遍历目标目录的所有直接子目录, 默认并行执行
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "batch-exec-cli",
3
- "version": "1.3.0",
3
+ "version": "1.3.3",
4
4
  "description": "Efficiently iterate through directories and execute commands with progress display and parallel execution",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -8,7 +8,6 @@
8
8
  "batch-exec": "src/cli.js"
9
9
  },
10
10
  "scripts": {
11
- "test": "echo 'Tests require Node.js >= 18.0.0 with --test support'",
12
11
  "lint": "eslint src/ test/"
13
12
  },
14
13
  "files": [
@@ -28,9 +27,9 @@
28
27
  ],
29
28
  "repository": {
30
29
  "type": "git",
31
- "url": "git+https://github.com/chandq/batch-exec.git"
30
+ "url": "git+https://github.com/chandq/batch-exec-cli.git"
32
31
  },
33
- "author": "",
32
+ "author": "chandq",
34
33
  "license": "MIT",
35
34
  "dependencies": {
36
35
  "minimist": "^1.2.8",
package/src/cli.js CHANGED
@@ -40,7 +40,6 @@ async function main() {
40
40
  }
41
41
 
42
42
  const skipPaths = await parseIgnoreFile(ignoreFilePath);
43
-
44
43
  if (argv.verbose) {
45
44
  console.log(bold('\n🚀 Batch Executor\n'));
46
45
  console.log(`Target directory: ${cyan(targetDir)}`);
@@ -7,7 +7,6 @@ export async function listDirectSubdirectories(targetDir, skipPatterns = []) {
7
7
 
8
8
  try {
9
9
  const entries = await fs.readdir(absoluteTargetDir, { withFileTypes: true });
10
-
11
10
  const subdirs = [];
12
11
 
13
12
  for (const entry of entries) {