@zokugun/cli-utils 0.4.1 → 0.4.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/README.md +11 -11
- package/lib/cjs/exec.cjs +2 -1
- package/lib/cjs/exec.d.cts +3 -3
- package/lib/esm/exec.d.mts +3 -3
- package/lib/esm/exec.mjs +2 -2
- package/package.json +6 -8
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ It bundles lightweight helpers so you can compose rich CLI interactions without
|
|
|
17
17
|
- prompt utilities (https://github.com/enquirer/enquirer)
|
|
18
18
|
- a tiny commander wrapper (https://github.com/tj/commander.js)
|
|
19
19
|
- a simple logger (use https://github.com/zokugun/node-log-update-plus)
|
|
20
|
-
- a tiny `child_process` wrapper (use https://github.com/zokugun/node-
|
|
20
|
+
- a tiny `child_process` wrapper (use https://github.com/zokugun/node-exec-lite)
|
|
21
21
|
|
|
22
22
|
Installation
|
|
23
23
|
------------
|
|
@@ -62,16 +62,16 @@ Module entry points
|
|
|
62
62
|
|
|
63
63
|
Choose the entry point that matches your environment and naming preferences:
|
|
64
64
|
|
|
65
|
-
| Import path | Description
|
|
66
|
-
| --------------------------------- |
|
|
67
|
-
| `@zokugun/cli-utils` | All utilities
|
|
68
|
-
| `@zokugun/cli-utils/ansi-colors` | colors from `ansi-colors`
|
|
69
|
-
| `@zokugun/cli-utils/cli-spinners` | spinners from `cli-spinners`
|
|
70
|
-
| `@zokugun/cli-utils/commander` | tiny command from `commander`
|
|
71
|
-
| `@zokugun/cli-utils/enquirer` | prompt utilities from `enquirer`
|
|
72
|
-
| `@zokugun/cli-utils/exec` | tiny exec from `
|
|
73
|
-
| `@zokugun/cli-utils/logger` | the logger
|
|
74
|
-
| `@zokugun/cli-utils/utils` | some utilities
|
|
65
|
+
| Import path | Description |
|
|
66
|
+
| --------------------------------- | ----------------------------------- |
|
|
67
|
+
| `@zokugun/cli-utils` | All utilities |
|
|
68
|
+
| `@zokugun/cli-utils/ansi-colors` | colors from `ansi-colors` |
|
|
69
|
+
| `@zokugun/cli-utils/cli-spinners` | spinners from `cli-spinners` |
|
|
70
|
+
| `@zokugun/cli-utils/commander` | tiny command from `commander` |
|
|
71
|
+
| `@zokugun/cli-utils/enquirer` | prompt utilities from `enquirer` |
|
|
72
|
+
| `@zokugun/cli-utils/exec` | tiny exec from `@zokugun/exec-lite` |
|
|
73
|
+
| `@zokugun/cli-utils/logger` | the logger |
|
|
74
|
+
| `@zokugun/cli-utils/utils` | some utilities |
|
|
75
75
|
|
|
76
76
|
Donations
|
|
77
77
|
---------
|
package/lib/cjs/exec.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.exec = exports.ExecProcess = void 0;
|
|
3
|
+
exports.exec = exports.ExecProcess = exports.createCommand = void 0;
|
|
4
4
|
const exec_lite_1 = require("@zokugun/exec-lite");
|
|
5
|
+
Object.defineProperty(exports, "createCommand", { enumerable: true, get: function () { return exec_lite_1.createCommand; } });
|
|
5
6
|
Object.defineProperty(exports, "ExecProcess", { enumerable: true, get: function () { return exec_lite_1.ExecProcess; } });
|
|
6
7
|
Object.defineProperty(exports, "exec", { enumerable: true, get: function () { return exec_lite_1.exec; } });
|
|
7
8
|
/* eslint-enable unicorn/prefer-export-from */
|
package/lib/cjs/exec.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ExecFailure, ExecResult, ExecSuccess, KillSignal, Options as ExecOptions, Subprocess } from '@zokugun/exec-lite';
|
|
2
|
-
import { ExecProcess, exec } from '@zokugun/exec-lite';
|
|
3
|
-
export { type ExecFailure, type ExecOptions, type ExecResult, type ExecSuccess, type KillSignal, type Subprocess, ExecProcess, exec, };
|
|
1
|
+
import type { Command, ExecFailure, ExecResult, ExecSuccess, KillSignal, Options as ExecOptions, Subprocess } from '@zokugun/exec-lite';
|
|
2
|
+
import { createCommand, ExecProcess, exec } from '@zokugun/exec-lite';
|
|
3
|
+
export { type Command, type ExecFailure, type ExecOptions, type ExecResult, type ExecSuccess, type KillSignal, type Subprocess, createCommand, ExecProcess, exec, };
|
package/lib/esm/exec.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ExecFailure, ExecResult, ExecSuccess, KillSignal, Options as ExecOptions, Subprocess } from '@zokugun/exec-lite';
|
|
2
|
-
import { ExecProcess, exec } from '@zokugun/exec-lite';
|
|
3
|
-
export { type ExecFailure, type ExecOptions, type ExecResult, type ExecSuccess, type KillSignal, type Subprocess, ExecProcess, exec, };
|
|
1
|
+
import type { Command, ExecFailure, ExecResult, ExecSuccess, KillSignal, Options as ExecOptions, Subprocess } from '@zokugun/exec-lite';
|
|
2
|
+
import { createCommand, ExecProcess, exec } from '@zokugun/exec-lite';
|
|
3
|
+
export { type Command, type ExecFailure, type ExecOptions, type ExecResult, type ExecSuccess, type KillSignal, type Subprocess, createCommand, ExecProcess, exec, };
|
package/lib/esm/exec.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExecProcess, exec } from '@zokugun/exec-lite';
|
|
1
|
+
import { createCommand, ExecProcess, exec } from '@zokugun/exec-lite';
|
|
2
2
|
/* eslint-disable unicorn/prefer-export-from */
|
|
3
|
-
export { ExecProcess, exec, };
|
|
3
|
+
export { createCommand, ExecProcess, exec, };
|
|
4
4
|
/* eslint-enable unicorn/prefer-export-from */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zokugun/cli-utils",
|
|
3
3
|
"description": "Utils for CLI app",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.3",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Baptiste Augrain",
|
|
7
7
|
"email": "daiyam@zokugun.org"
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"lint:package": "fixpack || true",
|
|
96
96
|
"prepack": "npm run build",
|
|
97
97
|
"prepare": "husky; npm run lint:package",
|
|
98
|
-
"release": "",
|
|
98
|
+
"release": "bump-n-ship release --all --pause",
|
|
99
99
|
"update:artifacts": "artifact update",
|
|
100
100
|
"update:ci": "pinact run -min-age 7 -update",
|
|
101
101
|
"update:deps": "taze --all",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
},
|
|
105
105
|
"dependencies": {
|
|
106
106
|
"@commander-js/extra-typings": "14.0.0",
|
|
107
|
-
"@zokugun/exec-lite": "0.
|
|
107
|
+
"@zokugun/exec-lite": "0.3.0",
|
|
108
108
|
"@zokugun/log-update-plus": "0.1.1",
|
|
109
109
|
"ansi-colors": "4.1.3",
|
|
110
110
|
"cli-spinners": "3.4.0",
|
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
"@commitlint/cli": "20.5.3",
|
|
116
116
|
"@commitlint/config-conventional": "20.5.3",
|
|
117
117
|
"@types/node": "20.19.43",
|
|
118
|
+
"@zokugun/bump-n-ship": "0.1.0",
|
|
118
119
|
"@zokugun/eslint-config": "0.2.1",
|
|
119
120
|
"@zokugun/eslint-config-data": "0.2.1",
|
|
120
121
|
"@zokugun/eslint-config-glossary": "0.2.0",
|
|
@@ -123,7 +124,7 @@
|
|
|
123
124
|
"@zokugun/eslint-config-nodejs": "0.2.0",
|
|
124
125
|
"@zokugun/eslint-config-style": "0.3.1",
|
|
125
126
|
"@zokugun/eslint-config-ts": "0.3.2",
|
|
126
|
-
"@zokugun/tsc-leda": "0.9.
|
|
127
|
+
"@zokugun/tsc-leda": "0.9.5",
|
|
127
128
|
"eslint": "10.13.0",
|
|
128
129
|
"fixpack": "4.0.0",
|
|
129
130
|
"husky": "9.1.7",
|
|
@@ -153,9 +154,6 @@
|
|
|
153
154
|
"katex": "0.18.2"
|
|
154
155
|
}
|
|
155
156
|
},
|
|
156
|
-
"allowScripts": {
|
|
157
|
-
"@zokugun/cli-utils": true,
|
|
158
|
-
"unrs-resolver": true
|
|
159
|
-
},
|
|
157
|
+
"allowScripts": {},
|
|
160
158
|
"keywords": []
|
|
161
159
|
}
|