@gunshi/plugin-renderer 0.27.0-beta.5 → 0.27.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/lib/index.js +6 -1
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -591,7 +591,12 @@ async function generatePositionalArgsUsage(ctx) {
|
|
|
591
591
|
}))).join("\n");
|
|
592
592
|
}
|
|
593
593
|
function generatePositionalSymbols(args) {
|
|
594
|
-
return hasPositionalArgs(args) ? getPositionalArgs(args).map(([name]) =>
|
|
594
|
+
return hasPositionalArgs(args) ? getPositionalArgs(args).map(([name, arg]) => {
|
|
595
|
+
const elements = [];
|
|
596
|
+
if (!arg.multiple || arg.required) elements.push(`<${name}>`);
|
|
597
|
+
if (arg.multiple) elements.push(`[<${name}> ...]`);
|
|
598
|
+
return elements.join(" ");
|
|
599
|
+
}).join(" ") : "";
|
|
595
600
|
}
|
|
596
601
|
|
|
597
602
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gunshi/plugin-renderer",
|
|
3
3
|
"description": "usage renderer plugin for gunshi",
|
|
4
|
-
"version": "0.27.0
|
|
4
|
+
"version": "0.27.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kazuya kawaguchi",
|
|
7
7
|
"email": "kawakazu80@gmail.com"
|
|
@@ -53,20 +53,20 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@gunshi/plugin": "0.27.0
|
|
56
|
+
"@gunshi/plugin": "0.27.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@gunshi/plugin-i18n": "0.27.0
|
|
59
|
+
"@gunshi/plugin-i18n": "0.27.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"deno": "^2.5.6",
|
|
63
63
|
"jsr": "^0.13.5",
|
|
64
64
|
"jsr-exports-lint": "^0.4.1",
|
|
65
|
-
"publint": "^0.3.
|
|
65
|
+
"publint": "^0.3.16",
|
|
66
66
|
"tsdown": "0.15.12",
|
|
67
67
|
"typedoc": "^0.28.15",
|
|
68
68
|
"typedoc-plugin-markdown": "^4.9.0",
|
|
69
|
-
"@gunshi/shared": "0.27.0
|
|
69
|
+
"@gunshi/shared": "0.27.0"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "tsdown",
|