@qui-cli/core 4.0.0 → 4.1.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/CHANGELOG.md +14 -0
- package/dist/JackSpeak.d.ts +1 -0
- package/dist/JackSpeak.js +3 -0
- package/dist/Positionals.d.ts +1 -1
- package/dist/Positionals.js +9 -4
- package/dist/Usage.d.ts +1 -0
- package/dist/Usage.js +3 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [4.1.0](https://github.com/battis/qui-cli/compare/core/4.0.1...core/4.1.0) (2025-11-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* support scripting markdown documentation for commands ([03ee6d5](https://github.com/battis/qui-cli/commit/03ee6d55f86f6d7b45bd205896cb0fb6a21523b5))
|
|
11
|
+
|
|
12
|
+
## [4.0.1](https://github.com/battis/qui-cli/compare/core/4.0.0...core/4.0.1) (2025-08-04)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* update lagging peer dependency specs ([30c0c27](https://github.com/battis/qui-cli/commit/30c0c279d4247a69a30efef8a7426442752cd9c0))
|
|
18
|
+
|
|
5
19
|
## [4.0.0](https://github.com/battis/qui-cli/compare/core/3.1.0...core/4.0.0) (2025-08-02)
|
|
6
20
|
|
|
7
21
|
|
package/dist/JackSpeak.d.ts
CHANGED
|
@@ -7,3 +7,4 @@ export declare function configure(config?: Configuration): void;
|
|
|
7
7
|
export declare function args(options: Plugin.Options): void;
|
|
8
8
|
export declare function parse(): import("jackspeak").Parsed<{}>;
|
|
9
9
|
export declare function usage(): string;
|
|
10
|
+
export declare function usageMarkdown(): string;
|
package/dist/JackSpeak.js
CHANGED
package/dist/Positionals.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare function maximumUnnamedCount(): number | undefined;
|
|
|
38
38
|
export declare function requireNoMoreThanUnnamedArgs(maxUnnamed: number): void;
|
|
39
39
|
export declare function init(args: Plugin.ExpectedArguments<() => Plugin.Options>): void;
|
|
40
40
|
export declare function usageArgs(): string;
|
|
41
|
-
export declare function usage(usage: string): string;
|
|
41
|
+
export declare function usage(usage: string, isMarkdown?: boolean): string;
|
|
42
42
|
export declare function run(): void;
|
|
43
43
|
export declare function get(positionalArgName: string): string | undefined;
|
|
44
44
|
export declare function namedArgs(): Record<string, string | undefined>;
|
package/dist/Positionals.js
CHANGED
|
@@ -155,10 +155,15 @@ function wrap(text, indent) {
|
|
|
155
155
|
})
|
|
156
156
|
.join('\n');
|
|
157
157
|
}
|
|
158
|
-
export function usage(usage) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
export function usage(usage, isMarkdown = false) {
|
|
159
|
+
let pre = usage.slice(0, usage.indexOf('\n') + 1);
|
|
160
|
+
let cmd = usage.slice(pre.length, usage.indexOf('\n\n'));
|
|
161
|
+
let post = usage.slice(pre.length + cmd.length);
|
|
162
|
+
if (isMarkdown) {
|
|
163
|
+
pre = usage.slice(0, usage.indexOf('```\n') + 4);
|
|
164
|
+
cmd = usage.slice(pre.length, usage.indexOf('\n```', pre.length));
|
|
165
|
+
post = usage.slice(pre.length + cmd.length);
|
|
166
|
+
}
|
|
162
167
|
return `${pre}${wrap(`${cmd
|
|
163
168
|
.split('\n')
|
|
164
169
|
.map((token) => token.trim())
|
package/dist/Usage.d.ts
CHANGED
package/dist/Usage.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qui-cli/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Core features of @qui-cli/qui-cli",
|
|
5
5
|
"homepage": "https://github.com/battis/qui-cli/tree/main/packages/core#readme",
|
|
6
6
|
"repository": {
|
|
@@ -18,21 +18,21 @@
|
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"jackspeak": "^4.1.1",
|
|
21
|
-
"wrap-ansi": "^9.0.
|
|
21
|
+
"wrap-ansi": "^9.0.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@tsconfig/node20": "^20.1.6",
|
|
25
|
-
"@types/node": "^24.
|
|
26
|
-
"commit-and-tag-version": "^12.
|
|
25
|
+
"@types/node": "^24.10.0",
|
|
26
|
+
"commit-and-tag-version": "^12.6.0",
|
|
27
27
|
"del-cli": "^6.0.0",
|
|
28
28
|
"npm-run-all": "^4.1.5",
|
|
29
|
-
"typescript": "
|
|
30
|
-
"@qui-cli/
|
|
31
|
-
"@qui-cli/
|
|
29
|
+
"typescript": "~5.8.3",
|
|
30
|
+
"@qui-cli/plugin": "3.0.0",
|
|
31
|
+
"@qui-cli/colors": "3.0.1"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@qui-cli/colors": "
|
|
35
|
-
"@qui-cli/plugin": "
|
|
34
|
+
"@qui-cli/colors": "3.x",
|
|
35
|
+
"@qui-cli/plugin": "3.x"
|
|
36
36
|
},
|
|
37
37
|
"target": "node",
|
|
38
38
|
"scripts": {
|