@shell-shock/plugin-help 0.2.29 → 0.2.30
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.
|
@@ -196,7 +196,7 @@ function VirtualCommandHelpDisplay(props) {
|
|
|
196
196
|
children: (child) => [
|
|
197
197
|
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
198
198
|
(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`
|
|
199
|
-
writeLine(textColors.heading.primary(${child.icon ? `(isUnicodeSupported ? " ${child.icon} " : "") + ` : ""}\`${child.title}
|
|
199
|
+
writeLine(textColors.heading.primary(${child.icon ? `(isUnicodeSupported ? " ${child.icon} " : "") + ` : ""}\`${child.title}${child.tags?.length > 0 ? ` - ${child.tags.map((tag) => `\${textColors.tags.${(0, _stryke_string_format_camel_case.camelCase)(tag)} ? textColors.tags.${(0, _stryke_string_format_camel_case.camelCase)(tag)}(inverse(" ${tag} ")) : textColors.tags.$default(inverse(" ${tag} "))}`).join(" ")}` : ""}\`));
|
|
200
200
|
writeLine("");
|
|
201
201
|
writeLine(textColors.body.tertiary(splitText(\`${(0, _shell_shock_core_plugin_utils.formatDescription)(child.description).replace(/\.+$/, "").trim()}.\`)));
|
|
202
202
|
writeLine(""); `),
|
|
@@ -250,7 +250,7 @@ function CommandHelpDisplay(props) {
|
|
|
250
250
|
children: (child) => [
|
|
251
251
|
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
252
252
|
(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`
|
|
253
|
-
writeLine(textColors.heading.primary(${child.icon ? `(isUnicodeSupported ? " ${child.icon} " : "") + ` : ""}\`${child.title}
|
|
253
|
+
writeLine(textColors.heading.primary(${child.icon ? `(isUnicodeSupported ? " ${child.icon} " : "") + ` : ""}\`${child.title}${child.tags?.length > 0 ? ` - ${child.tags.map((tag) => `\${textColors.tags.${(0, _stryke_string_format_camel_case.camelCase)(tag)} ? textColors.tags.${(0, _stryke_string_format_camel_case.camelCase)(tag)}(inverse(" ${tag} ")) : textColors.tags.$default(inverse(" ${tag} "))}`).join(" ")}` : ""}\`));
|
|
254
254
|
writeLine("");
|
|
255
255
|
writeLine(textColors.body.tertiary(splitText(\`${(0, _shell_shock_core_plugin_utils.formatDescription)(child.description).replace(/\.+$/, "").trim()}.\`)));
|
|
256
256
|
writeLine(""); `),
|
|
@@ -263,7 +263,7 @@ function CommandHelpDisplay(props) {
|
|
|
263
263
|
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
264
264
|
]
|
|
265
265
|
}),
|
|
266
|
-
(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`help(\`Running a specific command with the help flag (via: \${inlineCode("${(0, _shell_shock_core_plugin_utils.getAppBin)(context)} ${command.segments.join(" ")} <specific command> --help")}) will provide additional information that is specific to that command.\`);
|
|
266
|
+
(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`help(\`Running a specific command with the help flag (via: \${inlineCode("${(0, _shell_shock_core_plugin_utils.getAppBin)(context)}${command.segments.length > 0 ? ` ${command.segments.join(" ")}` : ""} <specific command> --help")}) will provide additional information that is specific to that command.\`);
|
|
267
267
|
writeLine("");`)
|
|
268
268
|
];
|
|
269
269
|
}
|
|
@@ -195,7 +195,7 @@ function VirtualCommandHelpDisplay(props) {
|
|
|
195
195
|
children: (child) => [
|
|
196
196
|
createIntrinsic("hbr", {}),
|
|
197
197
|
memo(() => code`
|
|
198
|
-
writeLine(textColors.heading.primary(${child.icon ? `(isUnicodeSupported ? " ${child.icon} " : "") + ` : ""}\`${child.title}
|
|
198
|
+
writeLine(textColors.heading.primary(${child.icon ? `(isUnicodeSupported ? " ${child.icon} " : "") + ` : ""}\`${child.title}${child.tags?.length > 0 ? ` - ${child.tags.map((tag) => `\${textColors.tags.${camelCase(tag)} ? textColors.tags.${camelCase(tag)}(inverse(" ${tag} ")) : textColors.tags.$default(inverse(" ${tag} "))}`).join(" ")}` : ""}\`));
|
|
199
199
|
writeLine("");
|
|
200
200
|
writeLine(textColors.body.tertiary(splitText(\`${formatDescription(child.description).replace(/\.+$/, "").trim()}.\`)));
|
|
201
201
|
writeLine(""); `),
|
|
@@ -249,7 +249,7 @@ function CommandHelpDisplay(props) {
|
|
|
249
249
|
children: (child) => [
|
|
250
250
|
createIntrinsic("hbr", {}),
|
|
251
251
|
memo(() => code`
|
|
252
|
-
writeLine(textColors.heading.primary(${child.icon ? `(isUnicodeSupported ? " ${child.icon} " : "") + ` : ""}\`${child.title}
|
|
252
|
+
writeLine(textColors.heading.primary(${child.icon ? `(isUnicodeSupported ? " ${child.icon} " : "") + ` : ""}\`${child.title}${child.tags?.length > 0 ? ` - ${child.tags.map((tag) => `\${textColors.tags.${camelCase(tag)} ? textColors.tags.${camelCase(tag)}(inverse(" ${tag} ")) : textColors.tags.$default(inverse(" ${tag} "))}`).join(" ")}` : ""}\`));
|
|
253
253
|
writeLine("");
|
|
254
254
|
writeLine(textColors.body.tertiary(splitText(\`${formatDescription(child.description).replace(/\.+$/, "").trim()}.\`)));
|
|
255
255
|
writeLine(""); `),
|
|
@@ -262,7 +262,7 @@ function CommandHelpDisplay(props) {
|
|
|
262
262
|
createIntrinsic("hbr", {})
|
|
263
263
|
]
|
|
264
264
|
}),
|
|
265
|
-
memo(() => code`help(\`Running a specific command with the help flag (via: \${inlineCode("${getAppBin(context)} ${command.segments.join(" ")} <specific command> --help")}) will provide additional information that is specific to that command.\`);
|
|
265
|
+
memo(() => code`help(\`Running a specific command with the help flag (via: \${inlineCode("${getAppBin(context)}${command.segments.length > 0 ? ` ${command.segments.join(" ")}` : ""} <specific command> --help")}) will provide additional information that is specific to that command.\`);
|
|
266
266
|
writeLine("");`)
|
|
267
267
|
];
|
|
268
268
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shell-shock/plugin-help",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.30",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Shell Shock plugin to provide help and documentation for the local application's commands.",
|
|
6
6
|
"keywords": [
|
|
@@ -153,24 +153,24 @@
|
|
|
153
153
|
"dependencies": {
|
|
154
154
|
"@alloy-js/core": "^0.23.1",
|
|
155
155
|
"@alloy-js/typescript": "^0.23.0",
|
|
156
|
-
"@powerlines/deepkit": "^0.9.
|
|
157
|
-
"@powerlines/plugin-alloy": "^0.26.
|
|
158
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
159
|
-
"@shell-shock/core": "0.17.
|
|
160
|
-
"@shell-shock/plugin-console": "0.2.
|
|
161
|
-
"@shell-shock/plugin-theme": "0.4.
|
|
156
|
+
"@powerlines/deepkit": "^0.9.80",
|
|
157
|
+
"@powerlines/plugin-alloy": "^0.26.219",
|
|
158
|
+
"@powerlines/plugin-plugin": "^0.12.538",
|
|
159
|
+
"@shell-shock/core": "0.17.12",
|
|
160
|
+
"@shell-shock/plugin-console": "0.2.16",
|
|
161
|
+
"@shell-shock/plugin-theme": "0.4.25",
|
|
162
162
|
"@stryke/helpers": "^0.10.24",
|
|
163
163
|
"@stryke/path": "^0.29.11",
|
|
164
164
|
"@stryke/string-format": "^0.17.26",
|
|
165
165
|
"@stryke/type-checks": "^0.6.17",
|
|
166
166
|
"@stryke/types": "^0.12.12",
|
|
167
167
|
"defu": "^6.1.7",
|
|
168
|
-
"powerlines": "^0.47.
|
|
168
|
+
"powerlines": "^0.47.126"
|
|
169
169
|
},
|
|
170
170
|
"devDependencies": {
|
|
171
|
-
"@powerlines/plugin-deepkit": "^0.11.
|
|
171
|
+
"@powerlines/plugin-deepkit": "^0.11.469",
|
|
172
172
|
"@types/node": "^25.9.1"
|
|
173
173
|
},
|
|
174
174
|
"publishConfig": { "access": "public" },
|
|
175
|
-
"gitHead": "
|
|
175
|
+
"gitHead": "3c10901dd3fbbc3c9d6d1a3373f01cc5f56d3321"
|
|
176
176
|
}
|