@shell-shock/preset-script 0.3.2 → 0.3.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/dist/components/banner-function-declaration.cjs +68 -0
- package/dist/components/banner-function-declaration.cjs.map +1 -0
- package/dist/components/banner-function-declaration.d.cts +19 -0
- package/dist/components/banner-function-declaration.d.cts.map +1 -0
- package/dist/components/banner-function-declaration.d.mts +19 -0
- package/dist/components/banner-function-declaration.d.mts.map +1 -0
- package/dist/components/banner-function-declaration.mjs +67 -0
- package/dist/components/banner-function-declaration.mjs.map +1 -0
- package/dist/components/bin-entry.cjs +1 -1
- package/dist/components/bin-entry.mjs +1 -1
- package/dist/components/command-entry.cjs +28 -18
- package/dist/components/command-entry.cjs.map +1 -1
- package/dist/components/command-entry.d.cts +5 -5
- package/dist/components/command-entry.d.cts.map +1 -1
- package/dist/components/command-entry.d.mts +4 -4
- package/dist/components/command-entry.d.mts.map +1 -1
- package/dist/components/command-entry.mjs +27 -17
- package/dist/components/command-entry.mjs.map +1 -1
- package/dist/components/command-router.cjs +8 -29
- package/dist/components/command-router.cjs.map +1 -1
- package/dist/components/command-router.mjs +8 -29
- package/dist/components/command-router.mjs.map +1 -1
- package/dist/components/console-builtin.cjs +2 -58
- package/dist/components/console-builtin.cjs.map +1 -1
- package/dist/components/console-builtin.d.cts +3 -21
- package/dist/components/console-builtin.d.cts.map +1 -1
- package/dist/components/console-builtin.d.mts +3 -21
- package/dist/components/console-builtin.d.mts.map +1 -1
- package/dist/components/console-builtin.mjs +4 -59
- package/dist/components/console-builtin.mjs.map +1 -1
- package/dist/components/help.cjs +72 -6
- package/dist/components/help.cjs.map +1 -1
- package/dist/components/help.d.cts +20 -6
- package/dist/components/help.d.cts.map +1 -1
- package/dist/components/help.d.mts +15 -1
- package/dist/components/help.d.mts.map +1 -1
- package/dist/components/help.mjs +72 -7
- package/dist/components/help.mjs.map +1 -1
- package/dist/components/index.cjs +3 -8
- package/dist/components/index.d.cts +4 -4
- package/dist/components/index.d.mts +4 -4
- package/dist/components/index.mjs +4 -4
- package/dist/components/utils-builtin.cjs +1 -1
- package/dist/components/utils-builtin.d.mts +7 -7
- package/dist/components/utils-builtin.mjs +1 -1
- package/dist/components/virtual-command-entry.cjs +3 -3
- package/dist/components/virtual-command-entry.cjs.map +1 -1
- package/dist/components/virtual-command-entry.d.cts +1 -1
- package/dist/components/virtual-command-entry.d.mts +3 -3
- package/dist/components/virtual-command-entry.mjs +3 -3
- package/dist/components/virtual-command-entry.mjs.map +1 -1
- package/dist/index.cjs +18 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +19 -52
- package/dist/index.mjs.map +1 -1
- package/dist/types/plugin.d.cts.map +1 -1
- package/package.json +18 -19
- package/dist/components/args-parser-logic.cjs +0 -678
- package/dist/components/args-parser-logic.cjs.map +0 -1
- package/dist/components/args-parser-logic.d.cts +0 -45
- package/dist/components/args-parser-logic.d.cts.map +0 -1
- package/dist/components/args-parser-logic.d.mts +0 -45
- package/dist/components/args-parser-logic.d.mts.map +0 -1
- package/dist/components/args-parser-logic.mjs +0 -672
- package/dist/components/args-parser-logic.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Children } from "@alloy-js/core";
|
|
2
|
+
import { ThemeMessageVariant } from "@shell-shock/plugin-theme/types/theme";
|
|
2
3
|
import { FunctionDeclarationProps } from "@alloy-js/typescript";
|
|
3
|
-
import { ThemeColorVariant, ThemeMessageVariant } from "@shell-shock/plugin-theme/types/theme";
|
|
4
4
|
|
|
5
5
|
//#region src/components/console-builtin.d.ts
|
|
6
6
|
|
|
@@ -24,15 +24,6 @@ type MessageFunctionDeclarationProps = Partial<Pick<FunctionDeclarationProps, "p
|
|
|
24
24
|
* A component to generate the message functions in the `shell-shock:console` builtin module.
|
|
25
25
|
*/
|
|
26
26
|
declare function MessageFunctionDeclaration(props: MessageFunctionDeclarationProps): Children;
|
|
27
|
-
interface BannerFunctionDeclarationProps {
|
|
28
|
-
variant?: ThemeColorVariant;
|
|
29
|
-
consoleFnName?: "log" | "info" | "warn" | "error" | "debug";
|
|
30
|
-
title?: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* A component to generate the `banner` function in the `shell-shock:console` builtin module.
|
|
34
|
-
*/
|
|
35
|
-
declare function BannerFunctionDeclaration(props: BannerFunctionDeclarationProps): Children;
|
|
36
27
|
/**
|
|
37
28
|
* A component to generate the `wrapAnsi` function in the `shell-shock:console` builtin module.
|
|
38
29
|
*/
|
|
@@ -57,19 +48,10 @@ type TableFunctionDeclarationProps = Omit<FunctionDeclarationProps, "parameters"
|
|
|
57
48
|
* A component to generate the table functions in the `shell-shock:console` builtin module.
|
|
58
49
|
*/
|
|
59
50
|
declare function TableFunctionDeclaration(props: TableFunctionDeclarationProps): Children;
|
|
60
|
-
interface ConsoleBuiltinProps {
|
|
61
|
-
/**
|
|
62
|
-
* A component to add the `banner` function to the console builtin module.
|
|
63
|
-
*
|
|
64
|
-
* @remarks
|
|
65
|
-
* By default the {@link BannerFunctionDeclaration} component is used, but this prop allows you to provide a custom implementation if desired.
|
|
66
|
-
*/
|
|
67
|
-
banner?: Children;
|
|
68
|
-
}
|
|
69
51
|
/**
|
|
70
52
|
* A built-in console utilities module for Shell Shock.
|
|
71
53
|
*/
|
|
72
|
-
declare function ConsoleBuiltin(
|
|
54
|
+
declare function ConsoleBuiltin(): Children;
|
|
73
55
|
//#endregion
|
|
74
|
-
export {
|
|
56
|
+
export { ColorsDeclaration, ConsoleBuiltin, DividerFunctionDeclaration, LinkFunctionDeclaration, MessageFunctionDeclaration, MessageFunctionDeclarationProps, StripAnsiFunctionDeclaration, TableFunctionDeclaration, TableFunctionDeclarationProps, WrapAnsiFunction, WriteLineFunctionDeclaration };
|
|
75
57
|
//# sourceMappingURL=console-builtin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console-builtin.d.cts","names":[],"sources":["../../src/components/console-builtin.tsx"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"console-builtin.d.cts","names":[],"sources":["../../src/components/console-builtin.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AA+EA;AAwpCgB,iBAxpCA,iBAAA,CAAA,CAwpC4B,EAxpCX,QAwpCW;AAuJ5C;;;AAA8C,iBAvJ9B,4BAAA,CAAA,CAuJ8B,EAvJF,QAuJE;AAYnC,KAZC,+BAAA,GAAkC,OAYnC,CAXT,IAWS,CAXJ,wBAWI,EAAA,YAAA,CAAA,CAAA,GAAA;EAGA,IAAA,EAAA,SAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,SAAA,GAAA,MAAA,GAAA,QAAA,GAAA,OAAA;EAAQ,OAAA,EAHR,mBAGQ;EAOH,aAAA,EAAA,KAAA,GAAA,MAA0B,GAAA,MAAA,GACjC,OAAA,GAAA,OAAA;EA0KO,WAAA,EAAA,MAAgB;EA4EhB,MAAA,CAAA,EA9PL,QA8PK;EAmCA,SAAA,CAAA,EAAA,OAAA;AAsFhB,CAAA;AA0FA;AAQA;AAseA;iBAx7BgB,0BAAA,QACP,kCAA+B;;;;iBA0KxB,gBAAA,CAAA,GAAgB;;;;iBA4EhB,4BAAA,CAAA,GAA4B;;;;iBAmC5B,0BAAA,CAAA,GAA0B;;;;iBAsF1B,uBAAA,CAAA,GAAuB;;;;KA0F3B,6BAAA,GAAgC,KAC1C;;;;iBAOc,wBAAA,QAAgC,gCAA6B;;;;iBAse7D,cAAA,CAAA,GAAc"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Children } from "@alloy-js/core";
|
|
2
2
|
import { FunctionDeclarationProps } from "@alloy-js/typescript";
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeMessageVariant } from "@shell-shock/plugin-theme/types/theme";
|
|
4
4
|
|
|
5
5
|
//#region src/components/console-builtin.d.ts
|
|
6
6
|
|
|
@@ -24,15 +24,6 @@ type MessageFunctionDeclarationProps = Partial<Pick<FunctionDeclarationProps, "p
|
|
|
24
24
|
* A component to generate the message functions in the `shell-shock:console` builtin module.
|
|
25
25
|
*/
|
|
26
26
|
declare function MessageFunctionDeclaration(props: MessageFunctionDeclarationProps): Children;
|
|
27
|
-
interface BannerFunctionDeclarationProps {
|
|
28
|
-
variant?: ThemeColorVariant;
|
|
29
|
-
consoleFnName?: "log" | "info" | "warn" | "error" | "debug";
|
|
30
|
-
title?: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* A component to generate the `banner` function in the `shell-shock:console` builtin module.
|
|
34
|
-
*/
|
|
35
|
-
declare function BannerFunctionDeclaration(props: BannerFunctionDeclarationProps): Children;
|
|
36
27
|
/**
|
|
37
28
|
* A component to generate the `wrapAnsi` function in the `shell-shock:console` builtin module.
|
|
38
29
|
*/
|
|
@@ -57,19 +48,10 @@ type TableFunctionDeclarationProps = Omit<FunctionDeclarationProps, "parameters"
|
|
|
57
48
|
* A component to generate the table functions in the `shell-shock:console` builtin module.
|
|
58
49
|
*/
|
|
59
50
|
declare function TableFunctionDeclaration(props: TableFunctionDeclarationProps): Children;
|
|
60
|
-
interface ConsoleBuiltinProps {
|
|
61
|
-
/**
|
|
62
|
-
* A component to add the `banner` function to the console builtin module.
|
|
63
|
-
*
|
|
64
|
-
* @remarks
|
|
65
|
-
* By default the {@link BannerFunctionDeclaration} component is used, but this prop allows you to provide a custom implementation if desired.
|
|
66
|
-
*/
|
|
67
|
-
banner?: Children;
|
|
68
|
-
}
|
|
69
51
|
/**
|
|
70
52
|
* A built-in console utilities module for Shell Shock.
|
|
71
53
|
*/
|
|
72
|
-
declare function ConsoleBuiltin(
|
|
54
|
+
declare function ConsoleBuiltin(): Children;
|
|
73
55
|
//#endregion
|
|
74
|
-
export {
|
|
56
|
+
export { ColorsDeclaration, ConsoleBuiltin, DividerFunctionDeclaration, LinkFunctionDeclaration, MessageFunctionDeclaration, MessageFunctionDeclarationProps, StripAnsiFunctionDeclaration, TableFunctionDeclaration, TableFunctionDeclarationProps, WrapAnsiFunction, WriteLineFunctionDeclaration };
|
|
75
57
|
//# sourceMappingURL=console-builtin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console-builtin.d.mts","names":[],"sources":["../../src/components/console-builtin.tsx"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"console-builtin.d.mts","names":[],"sources":["../../src/components/console-builtin.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AA+EA;AAwpCgB,iBAxpCA,iBAAA,CAAA,CAwpC4B,EAxpCX,QAwpCW;AAuJ5C;;;AAA8C,iBAvJ9B,4BAAA,CAAA,CAuJ8B,EAvJF,QAuJE;AAYnC,KAZC,+BAAA,GAAkC,OAYnC,CAXT,IAWS,CAXJ,wBAWI,EAAA,YAAA,CAAA,CAAA,GAAA;EAGA,IAAA,EAAA,SAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,SAAA,GAAA,MAAA,GAAA,QAAA,GAAA,OAAA;EAAQ,OAAA,EAHR,mBAGQ;EAOH,aAAA,EAAA,KAAA,GAAA,MAA0B,GAAA,MAAA,GACjC,OAAA,GAAA,OAAA;EA0KO,WAAA,EAAA,MAAgB;EA4EhB,MAAA,CAAA,EA9PL,QA8PK;EAmCA,SAAA,CAAA,EAAA,OAAA;AAsFhB,CAAA;AA0FA;AAQA;AAseA;iBAx7BgB,0BAAA,QACP,kCAA+B;;;;iBA0KxB,gBAAA,CAAA,GAAgB;;;;iBA4EhB,4BAAA,CAAA,GAA4B;;;;iBAmC5B,0BAAA,CAAA,GAA0B;;;;iBAsF1B,uBAAA,CAAA,GAAuB;;;;KA0F3B,6BAAA,GAAgC,KAC1C;;;;iBAOc,wBAAA,QAAgC,gCAA6B;;;;iBAse7D,cAAA,CAAA,GAAc"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { useColors, useTheme } from "../contexts/theme.mjs";
|
|
2
2
|
import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { For, Show, code
|
|
3
|
+
import { For, Show, code } from "@alloy-js/core";
|
|
4
4
|
import { ElseClause, FunctionDeclaration, IfStatement, InterfaceDeclaration, InterfaceMember, TypeDeclaration, VarDeclaration } from "@alloy-js/typescript";
|
|
5
|
-
import { getAppDescription, getAppTitle } from "@shell-shock/core/plugin-utils/context-helpers";
|
|
6
|
-
import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
|
|
7
5
|
import { TSDoc, TSDocDefaultValue, TSDocExample, TSDocParam, TSDocRemarks, TSDocReturns } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
|
|
8
6
|
import { ReflectionKind } from "@powerlines/deepkit/vendor/type";
|
|
9
|
-
import { useCommand } from "@shell-shock/core/contexts/command";
|
|
10
7
|
import { BuiltinFile } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
11
8
|
import { getIndefiniteArticle } from "@stryke/string-format/vowels";
|
|
12
9
|
|
|
@@ -1123,6 +1120,7 @@ function WriteLineFunctionDeclaration() {
|
|
|
1123
1120
|
}
|
|
1124
1121
|
}),
|
|
1125
1122
|
createComponent(FunctionDeclaration, {
|
|
1123
|
+
"export": true,
|
|
1126
1124
|
name: "splitText",
|
|
1127
1125
|
parameters: [{
|
|
1128
1126
|
name: "text",
|
|
@@ -1327,55 +1325,6 @@ function MessageFunctionDeclaration(props) {
|
|
|
1327
1325
|
})];
|
|
1328
1326
|
}
|
|
1329
1327
|
/**
|
|
1330
|
-
* A component to generate the `banner` function in the `shell-shock:console` builtin module.
|
|
1331
|
-
*/
|
|
1332
|
-
function BannerFunctionDeclaration(props) {
|
|
1333
|
-
const { consoleFnName = "log", variant = "primary", title: titleProp } = props;
|
|
1334
|
-
const theme = useTheme();
|
|
1335
|
-
const context = usePowerlines();
|
|
1336
|
-
const command = useCommand();
|
|
1337
|
-
const header = computed(() => `${theme.labels.banner.header[variant] || getAppTitle(context)} v${context.packageJson.version || "1.0.0"}`);
|
|
1338
|
-
const description = computed(() => command?.description || getAppDescription(context));
|
|
1339
|
-
const footer = computed(() => theme.labels.banner.footer[variant]);
|
|
1340
|
-
const title = computed(() => titleProp || /(?:cli|command-line|command line)\s+(?:application|app)?$/.test(header.value.toLowerCase()) ? header.value.replace(`v${context.packageJson.version || "1.0.0"}`, "").trim() : `${header.value.replace(`v${context.packageJson.version || "1.0.0"}`, "").trim()} Command-Line Application`);
|
|
1341
|
-
const bannerPadding = computed(() => Math.max(theme.padding.app, 0) * 2 + theme.borderStyles.banner.outline[variant].left.length + theme.borderStyles.banner.outline[variant].right.length);
|
|
1342
|
-
const totalPadding = computed(() => Math.max(theme.padding.banner, 0) * 2 + bannerPadding.value);
|
|
1343
|
-
return [createComponent(FunctionDeclaration, {
|
|
1344
|
-
"export": true,
|
|
1345
|
-
name: "banner",
|
|
1346
|
-
doc: "Write the application banner to the console.",
|
|
1347
|
-
get children() {
|
|
1348
|
-
return code`
|
|
1349
|
-
if (hasFlag("no-banner") || hasFlag("hide-banner") || isCI || isMinimal) {
|
|
1350
|
-
return;
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
writeLine(colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].topLeft}") + ${theme.icons.banner.header[variant] ? `colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].top}".repeat(4)) + " " + ${theme.icons.banner.header[variant] ? `colors.text.banner.header.${variant}("${theme.icons.banner.header[variant]}") + " " + colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].top}") + " " +` : ""} colors.bold(colors.text.banner.header.${variant}("${header.value}")) + " " + colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].top}".repeat(Math.max(process.stdout.columns - ${4 + (theme.icons.banner.header[variant] ? theme.icons.banner.header[variant].length + 3 : 0) + (header.value ? header.value.length + 2 : 0) + bannerPadding.value}, 0)))` : `colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].top}".repeat(Math.max(process.stdout.columns - ${bannerPadding.value}, 0)))`} + colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].topRight}"), { consoleFn: console.${consoleFnName} });
|
|
1354
|
-
|
|
1355
|
-
splitText(
|
|
1356
|
-
colors.bold(colors.text.banner.title.${variant}("${title.value}")),
|
|
1357
|
-
Math.max(process.stdout.columns - ${totalPadding.value}, 0)
|
|
1358
|
-
).forEach((line) => {
|
|
1359
|
-
writeLine(colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].left}") + " ".repeat(Math.max(Math.floor((process.stdout.columns - (stripAnsi(line).length + ${bannerPadding.value})) / 2), 0)) + colors.text.banner.description.${variant}(line) + " ".repeat(Math.max(Math.ceil((process.stdout.columns - (stripAnsi(line).length + ${bannerPadding.value})) / 2), 0)) + colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].right}"), { consoleFn: console.${consoleFnName} });
|
|
1360
|
-
});
|
|
1361
|
-
|
|
1362
|
-
${command?.title ? `writeLine(colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].bottomLeft}") + " ".repeat(Math.max(process.stdout.columns - ${bannerPadding.value})) + colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].bottomRight}"), { consoleFn: console.${consoleFnName} });
|
|
1363
|
-
|
|
1364
|
-
writeLine(colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].left}") + " ".repeat(Math.max(Math.floor((process.stdout.columns - (stripAnsi(line).length + ${bannerPadding.value})) / 2), 0)) + colors.bold(colors.text.banner.command.${variant}("${command.title}")) + " ".repeat(Math.max(Math.ceil((process.stdout.columns - (stripAnsi(line).length + ${bannerPadding.value})) / 2), 0)) + colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].right}"), { consoleFn: console.${consoleFnName} }); ` : ""}
|
|
1365
|
-
|
|
1366
|
-
splitText(
|
|
1367
|
-
colors.bold(${command?.title ? "colors.text.banner.description" : "colors.text.banner.command"}.${variant}("${description.value.replace(/"/g, "\\\"")}")),
|
|
1368
|
-
Math.max(process.stdout.columns - ${totalPadding.value}, 0)
|
|
1369
|
-
).forEach((line) => {
|
|
1370
|
-
writeLine(colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].left}") + " ".repeat(Math.max(Math.floor((process.stdout.columns - (stripAnsi(line).length + ${bannerPadding.value})) / 2), 0)) + colors.text.banner.description.${variant}(line) + " ".repeat(Math.max(Math.ceil((process.stdout.columns - (stripAnsi(line).length + ${bannerPadding.value})) / 2), 0)) + colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].right}"), { consoleFn: console.${consoleFnName} });
|
|
1371
|
-
});
|
|
1372
|
-
|
|
1373
|
-
writeLine(colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].bottomLeft}") + ${footer.value ? `colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].bottom}".repeat(Math.max(process.stdout.columns - ${6 + (footer.value ? footer.value.length : 0) + bannerPadding.value}, 0))) + " " + ${footer.value ? `colors.bold(colors.text.banner.footer.${variant}("${footer.value}"))` : ""} + " " + colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].bottom}".repeat(4))` : `colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].bottom}".repeat(Math.max(process.stdout.columns - ${bannerPadding.value}, 0)))`} + colors.border.banner.outline.${variant}("${theme.borderStyles.banner.outline[variant].bottomRight}"), { consoleFn: console.${consoleFnName} });
|
|
1374
|
-
`;
|
|
1375
|
-
}
|
|
1376
|
-
})];
|
|
1377
|
-
}
|
|
1378
|
-
/**
|
|
1379
1328
|
* A component to generate the `wrapAnsi` function in the `shell-shock:console` builtin module.
|
|
1380
1329
|
*/
|
|
1381
1330
|
function WrapAnsiFunction() {
|
|
@@ -2143,8 +2092,7 @@ cells.forEach((row, rowIndex) => {
|
|
|
2143
2092
|
/**
|
|
2144
2093
|
* A built-in console utilities module for Shell Shock.
|
|
2145
2094
|
*/
|
|
2146
|
-
function ConsoleBuiltin(
|
|
2147
|
-
const { banner } = props;
|
|
2095
|
+
function ConsoleBuiltin() {
|
|
2148
2096
|
return createComponent(BuiltinFile, {
|
|
2149
2097
|
id: "console",
|
|
2150
2098
|
description: "A collection of helper utilities to assist in generating content meant for display in the console.",
|
|
@@ -2187,9 +2135,6 @@ function ConsoleBuiltin(props) {
|
|
|
2187
2135
|
createComponent(DividerFunctionDeclaration, {}),
|
|
2188
2136
|
createIntrinsic("hbr", {}),
|
|
2189
2137
|
createIntrinsic("hbr", {}),
|
|
2190
|
-
memo(() => banner ?? createComponent(BannerFunctionDeclaration, {})),
|
|
2191
|
-
createIntrinsic("hbr", {}),
|
|
2192
|
-
createIntrinsic("hbr", {}),
|
|
2193
2138
|
createComponent(MessageFunctionDeclaration, {
|
|
2194
2139
|
type: "help",
|
|
2195
2140
|
variant: "help",
|
|
@@ -2304,5 +2249,5 @@ function ConsoleBuiltin(props) {
|
|
|
2304
2249
|
}
|
|
2305
2250
|
|
|
2306
2251
|
//#endregion
|
|
2307
|
-
export {
|
|
2252
|
+
export { ColorsDeclaration, ConsoleBuiltin, DividerFunctionDeclaration, LinkFunctionDeclaration, MessageFunctionDeclaration, StripAnsiFunctionDeclaration, TableFunctionDeclaration, WrapAnsiFunction, WriteLineFunctionDeclaration };
|
|
2308
2253
|
//# sourceMappingURL=console-builtin.mjs.map
|