@shell-shock/core 0.8.7 → 0.8.9
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 +1 -1
- package/dist/components/docs.d.cts +5 -5
- package/dist/components/helpers.d.cts +2 -2
- package/dist/components/helpers.d.cts.map +1 -1
- package/dist/components/helpers.d.mts +2 -2
- package/dist/components/helpers.d.mts.map +1 -1
- package/dist/components/usage.d.cts +2 -2
- package/dist/components/usage.d.mts +2 -2
- package/dist/components/usage.d.mts.map +1 -1
- package/dist/helpers/automd.cjs +4 -3
- package/dist/helpers/automd.cjs.map +1 -1
- package/dist/helpers/automd.mjs +1 -0
- package/dist/helpers/automd.mjs.map +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the ⚡<b>Shell Shock</b> monorepo. The Shell Shock pack
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://stormsoftware.com/projects/shell-shock/) [](http://commitizen.github.io/cz-cli/)  
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommandTree } from "../types/command.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core8 from "@alloy-js/core";
|
|
3
3
|
import { MarkdownFileProps } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
|
|
4
4
|
|
|
5
5
|
//#region src/components/docs.d.ts
|
|
@@ -12,7 +12,7 @@ interface CommandOptionsDocsProps {
|
|
|
12
12
|
/**
|
|
13
13
|
* Generates the options markdown documentation for a command.
|
|
14
14
|
*/
|
|
15
|
-
declare function CommandOptionsDocs(props: CommandOptionsDocsProps):
|
|
15
|
+
declare function CommandOptionsDocs(props: CommandOptionsDocsProps): _alloy_js_core8.Children;
|
|
16
16
|
interface CommandDocsUsageExampleProps {
|
|
17
17
|
/**
|
|
18
18
|
* The package manager to generate the usage example for.
|
|
@@ -31,7 +31,7 @@ interface CommandDocsUsageExampleProps {
|
|
|
31
31
|
/**
|
|
32
32
|
* Generates the markdown documentation for a command.
|
|
33
33
|
*/
|
|
34
|
-
declare function CommandDocsUsageExample(props: CommandDocsUsageExampleProps):
|
|
34
|
+
declare function CommandDocsUsageExample(props: CommandDocsUsageExampleProps): _alloy_js_core8.Children;
|
|
35
35
|
interface CommandDocsProps {
|
|
36
36
|
/**
|
|
37
37
|
* The heading level offset to apply to the generated documentation.
|
|
@@ -56,7 +56,7 @@ interface CommandDocsProps {
|
|
|
56
56
|
/**
|
|
57
57
|
* Generates the markdown documentation for a command.
|
|
58
58
|
*/
|
|
59
|
-
declare function CommandDocs(props: CommandDocsProps):
|
|
59
|
+
declare function CommandDocs(props: CommandDocsProps): _alloy_js_core8.Children;
|
|
60
60
|
interface CommandDocsFileProps extends Partial<MarkdownFileProps> {
|
|
61
61
|
/**
|
|
62
62
|
* The heading level offset to apply to the generated documentation.
|
|
@@ -75,7 +75,7 @@ interface CommandDocsFileProps extends Partial<MarkdownFileProps> {
|
|
|
75
75
|
/**
|
|
76
76
|
* Generates the markdown documentation file for a command.
|
|
77
77
|
*/
|
|
78
|
-
declare function CommandDocsFile(props: CommandDocsFileProps):
|
|
78
|
+
declare function CommandDocsFile(props: CommandDocsFileProps): _alloy_js_core8.Children;
|
|
79
79
|
//#endregion
|
|
80
80
|
export { CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandOptionsDocsProps };
|
|
81
81
|
//# sourceMappingURL=docs.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core12 from "@alloy-js/core";
|
|
2
2
|
|
|
3
3
|
//#region src/components/helpers.d.ts
|
|
4
4
|
interface BooleanInputParserLogicProps {
|
|
@@ -7,7 +7,7 @@ interface BooleanInputParserLogicProps {
|
|
|
7
7
|
/**
|
|
8
8
|
* Parses a string input into a boolean value, interpreting common truthy and falsy string representations.
|
|
9
9
|
*/
|
|
10
|
-
declare function BooleanInputParserLogic(props: BooleanInputParserLogicProps):
|
|
10
|
+
declare function BooleanInputParserLogic(props: BooleanInputParserLogicProps): _alloy_js_core12.Children;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { BooleanInputParserLogic, BooleanInputParserLogicProps };
|
|
13
13
|
//# sourceMappingURL=helpers.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/components/helpers.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,4BAAA;;;AAAjB;AAOA;;iBAAgB,uBAAA,QAA+B,+BAA4B,
|
|
1
|
+
{"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/components/helpers.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,4BAAA;;;AAAjB;AAOA;;iBAAgB,uBAAA,QAA+B,+BAA4B,gBAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
2
2
|
|
|
3
3
|
//#region src/components/helpers.d.ts
|
|
4
4
|
interface BooleanInputParserLogicProps {
|
|
@@ -7,7 +7,7 @@ interface BooleanInputParserLogicProps {
|
|
|
7
7
|
/**
|
|
8
8
|
* Parses a string input into a boolean value, interpreting common truthy and falsy string representations.
|
|
9
9
|
*/
|
|
10
|
-
declare function BooleanInputParserLogic(props: BooleanInputParserLogicProps):
|
|
10
|
+
declare function BooleanInputParserLogic(props: BooleanInputParserLogicProps): _alloy_js_core0.Children;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { BooleanInputParserLogic, BooleanInputParserLogicProps };
|
|
13
13
|
//# sourceMappingURL=helpers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/components/helpers.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,4BAAA;;;AAAjB;AAOA;;iBAAgB,uBAAA,QAA+B,+BAA4B,
|
|
1
|
+
{"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/components/helpers.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,4BAAA;;;AAAjB;AAOA;;iBAAgB,uBAAA,QAA+B,+BAA4B,eAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommandTree } from "../types/command.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/components/usage.d.ts
|
|
5
5
|
interface UsageProps {
|
|
@@ -22,7 +22,7 @@ interface UsageProps {
|
|
|
22
22
|
/**
|
|
23
23
|
* A component that generates the usage display for a command.
|
|
24
24
|
*/
|
|
25
|
-
declare function Usage(props: UsageProps):
|
|
25
|
+
declare function Usage(props: UsageProps): _alloy_js_core0.Children;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { Usage, UsageProps };
|
|
28
28
|
//# sourceMappingURL=usage.d.cts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommandTree } from "../types/command.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core12 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/components/usage.d.ts
|
|
5
5
|
interface UsageProps {
|
|
@@ -22,7 +22,7 @@ interface UsageProps {
|
|
|
22
22
|
/**
|
|
23
23
|
* A component that generates the usage display for a command.
|
|
24
24
|
*/
|
|
25
|
-
declare function Usage(props: UsageProps):
|
|
25
|
+
declare function Usage(props: UsageProps): _alloy_js_core12.Children;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { Usage, UsageProps };
|
|
28
28
|
//# sourceMappingURL=usage.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.mts","names":[],"sources":["../../src/components/usage.tsx"],"sourcesContent":[],"mappings":";;;;UA2BiB,UAAA;;;AAAjB;EAuBgB,OAAA,EAnBL,WAmBkB;;;;;;;;;;;;;;;;iBAAb,KAAA,QAAa,aAAU,
|
|
1
|
+
{"version":3,"file":"usage.d.mts","names":[],"sources":["../../src/components/usage.tsx"],"sourcesContent":[],"mappings":";;;;UA2BiB,UAAA;;;AAAjB;EAuBgB,OAAA,EAnBL,WAmBkB;;;;;;;;;;;;;;;;iBAAb,KAAA,QAAa,aAAU,gBAAA,CAAA"}
|
package/dist/helpers/automd.cjs
CHANGED
|
@@ -7,6 +7,7 @@ let __alloy_js_core_components = require("@alloy-js/core/components");
|
|
|
7
7
|
let __powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
|
|
8
8
|
let __alloy_js_core = require("@alloy-js/core");
|
|
9
9
|
let __alloy_js_markdown = require("@alloy-js/markdown");
|
|
10
|
+
let __powerlines_plugin_alloy_core_components_spacing = require("@powerlines/plugin-alloy/core/components/spacing");
|
|
10
11
|
let automd = require("automd");
|
|
11
12
|
|
|
12
13
|
//#region src/helpers/automd.tsx
|
|
@@ -26,9 +27,9 @@ const commands = (context) => (0, automd.defineGenerator)({
|
|
|
26
27
|
level: 2,
|
|
27
28
|
children: "Commands"
|
|
28
29
|
}),
|
|
29
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(Spacing, {}),
|
|
30
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
30
31
|
(0, __alloy_js_core_jsx_runtime.memo)(() => __alloy_js_core.code`The following commands are available in the ${require_plugin_utils_context_helpers.getAppTitle(context)} CLI application:`),
|
|
31
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(Spacing, {}),
|
|
32
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
32
33
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core_components.For, {
|
|
33
34
|
get each() {
|
|
34
35
|
return Object.values(context.commands);
|
|
@@ -46,7 +47,7 @@ const commands = (context) => (0, automd.defineGenerator)({
|
|
|
46
47
|
}
|
|
47
48
|
})
|
|
48
49
|
}),
|
|
49
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(Spacing, {})
|
|
50
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_core_components_spacing.Spacing, {})
|
|
50
51
|
]) };
|
|
51
52
|
}
|
|
52
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automd.cjs","names":["code","For","Show","Heading","renderString","defineGenerator","CommandDocs","getAppTitle","commands","context","name","generate","contents","_$createComponent","level","children","
|
|
1
|
+
{"version":3,"file":"automd.cjs","names":["code","For","Show","Heading","renderString","defineGenerator","CommandDocs","getAppTitle","Spacing","commands","context","name","generate","contents","_$createComponent","level","children","_$memo","each","Object","values","doubleHardline","child","when","isVirtual","command","levelOffset"],"sources":["../../src/helpers/automd.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code } from \"@alloy-js/core\";\nimport { For, Show } from \"@alloy-js/core/components\";\nimport { Heading } from \"@alloy-js/markdown\";\nimport { renderString } from \"@powerlines/plugin-alloy/render\";\nimport { defineGenerator } from \"automd\";\nimport { CommandDocs } from \"../components/docs\";\nimport { getAppTitle } from \"../plugin-utils\";\nimport type { Context } from \"../types/context\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\n\n/**\n * AutoMD generator to generate CLI command documentation\n *\n * @see https://automd.unjs.io/\n *\n * @param context - The generator context.\n * @returns The generated documentation content.\n */\nexport const commands = (context: Context) =>\n defineGenerator({\n name: \"commands\",\n async generate() {\n return {\n contents: renderString(\n context,\n <>\n <Heading level={2}>Commands</Heading>\n <Spacing />\n {code`The following commands are available in the ${getAppTitle(\n context\n )} CLI application:`}\n <Spacing />\n <For each={Object.values(context.commands)} doubleHardline>\n {child => (\n <Show when={!child.isVirtual}>\n <CommandDocs command={child} levelOffset={2} />\n </Show>\n )}\n </For>\n <Spacing />\n </>\n )\n };\n }\n });\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoCA,MAAaS,YAAYC,wCACP;CACdC,MAAM;CACN,MAAMC,WAAW;AACf,SAAO,EACLC,6DACEH,SAAO;oDAEJP,6BAAO;IAACY,OAAO;IAACC,UAAA;IAAA,CAAA;oDAChBR,2DAAO,EAAA,CAAA;+CACPR,oBAAI,+CAA+CO,iDAClDG,QACD,CAAA,mBAAmB;oDACnBF,2DAAO,EAAA,CAAA;oDACPP,gCAAG;IAAA,IAACiB,OAAI;AAAA,YAAEC,OAAOC,OAAOV,QAAQD,SAAS;;IAAEY,gBAAc;IAAAL,WACvDM,2DACEpB,iCAAI;KAAA,IAACqB,OAAI;AAAA,aAAE,CAACD,MAAME;;KAAS,IAAAR,WAAA;AAAA,8DACzBV,qCAAW;OAACmB,SAASH;OAAOI,aAAa;OAAC,CAAA;;KAAA,CAAA;IAE9C,CAAA;oDAEFlB,2DAAO,EAAA,CAAA;GAEZ,CAAA,EACD;;CAEJ,CAAC"}
|
package/dist/helpers/automd.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import { For, Show } from "@alloy-js/core/components";
|
|
|
6
6
|
import { renderString } from "@powerlines/plugin-alloy/render";
|
|
7
7
|
import { code } from "@alloy-js/core";
|
|
8
8
|
import { Heading } from "@alloy-js/markdown";
|
|
9
|
+
import { Spacing } from "@powerlines/plugin-alloy/core/components/spacing";
|
|
9
10
|
import { defineGenerator } from "automd";
|
|
10
11
|
|
|
11
12
|
//#region src/helpers/automd.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automd.mjs","names":["code","For","Show","Heading","renderString","defineGenerator","CommandDocs","getAppTitle","commands","context","name","generate","contents","_$createComponent","level","children","
|
|
1
|
+
{"version":3,"file":"automd.mjs","names":["code","For","Show","Heading","renderString","defineGenerator","CommandDocs","getAppTitle","Spacing","commands","context","name","generate","contents","_$createComponent","level","children","_$memo","each","Object","values","doubleHardline","child","when","isVirtual","command","levelOffset"],"sources":["../../src/helpers/automd.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code } from \"@alloy-js/core\";\nimport { For, Show } from \"@alloy-js/core/components\";\nimport { Heading } from \"@alloy-js/markdown\";\nimport { renderString } from \"@powerlines/plugin-alloy/render\";\nimport { defineGenerator } from \"automd\";\nimport { CommandDocs } from \"../components/docs\";\nimport { getAppTitle } from \"../plugin-utils\";\nimport type { Context } from \"../types/context\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\n\n/**\n * AutoMD generator to generate CLI command documentation\n *\n * @see https://automd.unjs.io/\n *\n * @param context - The generator context.\n * @returns The generated documentation content.\n */\nexport const commands = (context: Context) =>\n defineGenerator({\n name: \"commands\",\n async generate() {\n return {\n contents: renderString(\n context,\n <>\n <Heading level={2}>Commands</Heading>\n <Spacing />\n {code`The following commands are available in the ${getAppTitle(\n context\n )} CLI application:`}\n <Spacing />\n <For each={Object.values(context.commands)} doubleHardline>\n {child => (\n <Show when={!child.isVirtual}>\n <CommandDocs command={child} levelOffset={2} />\n </Show>\n )}\n </For>\n <Spacing />\n </>\n )\n };\n }\n });\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoCA,MAAaS,YAAYC,YACvBL,gBAAgB;CACdM,MAAM;CACN,MAAMC,WAAW;AACf,SAAO,EACLC,UAAUT,aACRM,SAAO;GAAAI,gBAEJX,SAAO;IAACY,OAAO;IAACC,UAAA;IAAA,CAAA;GAAAF,gBAChBN,SAAO,EAAA,CAAA;GAAAS,WACPjB,IAAI,+CAA+CO,YAClDG,QACD,CAAA,mBAAmB;GAAAI,gBACnBN,SAAO,EAAA,CAAA;GAAAM,gBACPb,KAAG;IAAA,IAACiB,OAAI;AAAA,YAAEC,OAAOC,OAAOV,QAAQD,SAAS;;IAAEY,gBAAc;IAAAL,WACvDM,UAAKR,gBACHZ,MAAI;KAAA,IAACqB,OAAI;AAAA,aAAE,CAACD,MAAME;;KAAS,IAAAR,WAAA;AAAA,aAAAF,gBACzBR,aAAW;OAACmB,SAASH;OAAOI,aAAa;OAAC,CAAA;;KAAA,CAAA;IAE9C,CAAA;GAAAZ,gBAEFN,SAAO,EAAA,CAAA;GAEZ,CAAA,EACD;;CAEJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shell-shock/core",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing the core Shell Shock functionality used to build and manage a command-line application.",
|
|
6
6
|
"repository": {
|
|
@@ -364,13 +364,13 @@
|
|
|
364
364
|
"@alloy-js/core": "0.23.0-dev.8",
|
|
365
365
|
"@alloy-js/markdown": "0.23.0-dev.1",
|
|
366
366
|
"@alloy-js/typescript": "0.23.0-dev.4",
|
|
367
|
-
"@powerlines/deepkit": "^0.6.
|
|
368
|
-
"@powerlines/plugin-alloy": "^0.23.
|
|
369
|
-
"@powerlines/plugin-automd": "^0.1.
|
|
370
|
-
"@powerlines/plugin-deepkit": "^0.11.
|
|
371
|
-
"@powerlines/plugin-nodejs": "^0.1.
|
|
372
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
373
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
367
|
+
"@powerlines/deepkit": "^0.6.63",
|
|
368
|
+
"@powerlines/plugin-alloy": "^0.23.13",
|
|
369
|
+
"@powerlines/plugin-automd": "^0.1.283",
|
|
370
|
+
"@powerlines/plugin-deepkit": "^0.11.162",
|
|
371
|
+
"@powerlines/plugin-nodejs": "^0.1.197",
|
|
372
|
+
"@powerlines/plugin-plugin": "^0.12.234",
|
|
373
|
+
"@powerlines/plugin-tsdown": "^0.1.236",
|
|
374
374
|
"@stryke/cli": "^0.13.15",
|
|
375
375
|
"@stryke/convert": "^0.6.40",
|
|
376
376
|
"@stryke/fs": "^0.33.43",
|
|
@@ -382,10 +382,10 @@
|
|
|
382
382
|
"@stryke/types": "^0.10.39",
|
|
383
383
|
"automd": "^0.4.3",
|
|
384
384
|
"defu": "^6.1.4",
|
|
385
|
-
"powerlines": "^0.38.
|
|
385
|
+
"powerlines": "^0.38.50",
|
|
386
386
|
"rolldown": "1.0.0-beta.52"
|
|
387
387
|
},
|
|
388
388
|
"devDependencies": { "@types/node": "^22.19.11", "typescript": "^5.9.3" },
|
|
389
389
|
"publishConfig": { "access": "public" },
|
|
390
|
-
"gitHead": "
|
|
390
|
+
"gitHead": "305a2a23562d3ddd3f1c04bc770de72a30cf0fcb"
|
|
391
391
|
}
|