@shell-shock/preset-script 0.1.1 → 0.2.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/README.md +1 -1
- package/dist/components/args-parser-logic.cjs +678 -0
- package/dist/components/args-parser-logic.cjs.map +1 -0
- package/dist/components/args-parser-logic.d.cts +45 -0
- package/dist/components/args-parser-logic.d.cts.map +1 -0
- package/dist/components/args-parser-logic.d.mts +45 -0
- package/dist/components/args-parser-logic.d.mts.map +1 -0
- package/dist/components/args-parser-logic.mjs +672 -0
- package/dist/components/args-parser-logic.mjs.map +1 -0
- package/dist/components/bin-entry.cjs +188 -0
- package/dist/components/bin-entry.cjs.map +1 -0
- package/dist/components/{entry/bin.d.cts → bin-entry.d.cts} +9 -3
- package/dist/components/bin-entry.d.cts.map +1 -0
- package/dist/components/{entry/bin.d.mts → bin-entry.d.mts} +9 -3
- package/dist/components/bin-entry.d.mts.map +1 -0
- package/dist/components/bin-entry.mjs +185 -0
- package/dist/components/bin-entry.mjs.map +1 -0
- package/dist/components/command-entry.cjs +162 -0
- package/dist/components/command-entry.cjs.map +1 -0
- package/dist/components/command-entry.d.cts +24 -0
- package/dist/components/command-entry.d.cts.map +1 -0
- package/dist/components/command-entry.d.mts +24 -0
- package/dist/components/command-entry.d.mts.map +1 -0
- package/dist/components/command-entry.mjs +158 -0
- package/dist/components/command-entry.mjs.map +1 -0
- package/dist/components/command-router.cjs +129 -74
- package/dist/components/command-router.cjs.map +1 -1
- package/dist/components/command-router.d.cts +13 -4
- package/dist/components/command-router.d.cts.map +1 -0
- package/dist/components/command-router.d.mts +13 -4
- package/dist/components/command-router.d.mts.map +1 -0
- package/dist/components/command-router.mjs +128 -73
- package/dist/components/command-router.mjs.map +1 -1
- package/dist/components/console-builtin.cjs +2086 -0
- package/dist/components/console-builtin.cjs.map +1 -0
- package/dist/components/console-builtin.d.cts +56 -0
- package/dist/components/console-builtin.d.cts.map +1 -0
- package/dist/components/console-builtin.d.mts +56 -0
- package/dist/components/console-builtin.d.mts.map +1 -0
- package/dist/components/console-builtin.mjs +2077 -0
- package/dist/components/console-builtin.mjs.map +1 -0
- package/dist/components/help.cjs +130 -0
- package/dist/components/help.cjs.map +1 -0
- package/dist/components/help.d.cts +57 -0
- package/dist/components/help.d.cts.map +1 -0
- package/dist/components/help.d.mts +57 -0
- package/dist/components/help.d.mts.map +1 -0
- package/dist/components/help.mjs +126 -0
- package/dist/components/help.mjs.map +1 -0
- package/dist/components/index.cjs +39 -15
- package/dist/components/index.d.cts +9 -7
- package/dist/components/index.d.mts +9 -7
- package/dist/components/index.mjs +8 -6
- package/dist/components/utils-builtin.cjs +612 -0
- package/dist/components/utils-builtin.cjs.map +1 -0
- package/dist/components/utils-builtin.d.cts +32 -0
- package/dist/components/utils-builtin.d.cts.map +1 -0
- package/dist/components/utils-builtin.d.mts +32 -0
- package/dist/components/utils-builtin.d.mts.map +1 -0
- package/dist/components/utils-builtin.mjs +605 -0
- package/dist/components/utils-builtin.mjs.map +1 -0
- package/dist/components/virtual-command-entry.cjs +140 -0
- package/dist/components/virtual-command-entry.cjs.map +1 -0
- package/dist/components/virtual-command-entry.d.cts +21 -0
- package/dist/components/virtual-command-entry.d.cts.map +1 -0
- package/dist/components/virtual-command-entry.d.mts +21 -0
- package/dist/components/virtual-command-entry.d.mts.map +1 -0
- package/dist/components/virtual-command-entry.mjs +137 -0
- package/dist/components/virtual-command-entry.mjs.map +1 -0
- package/dist/contexts/index.cjs +4 -0
- package/dist/contexts/index.d.cts +2 -0
- package/dist/contexts/index.d.mts +2 -0
- package/dist/contexts/index.mjs +3 -0
- package/dist/contexts/theme.d.cts +20 -0
- package/dist/contexts/theme.d.cts.map +1 -0
- package/dist/contexts/theme.d.mts +20 -0
- package/dist/contexts/theme.d.mts.map +1 -0
- package/dist/helpers/ansi-utils.cjs +28 -4
- package/dist/helpers/ansi-utils.cjs.map +1 -1
- package/dist/helpers/ansi-utils.d.cts +68 -0
- package/dist/helpers/ansi-utils.d.cts.map +1 -0
- package/dist/helpers/ansi-utils.d.mts +68 -0
- package/dist/helpers/ansi-utils.d.mts.map +1 -0
- package/dist/helpers/ansi-utils.mjs +28 -4
- package/dist/helpers/ansi-utils.mjs.map +1 -1
- package/dist/helpers/get-default-options.cjs +6 -13
- package/dist/helpers/get-default-options.cjs.map +1 -1
- package/dist/helpers/get-default-options.mjs +6 -13
- package/dist/helpers/get-default-options.mjs.map +1 -1
- package/dist/index.cjs +117 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +118 -28
- package/dist/index.mjs.map +1 -1
- package/dist/types/plugin.d.cts +1 -6
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +1 -6
- package/dist/types/plugin.d.mts.map +1 -0
- package/package.json +163 -71
- package/dist/components/builtin/console.cjs +0 -1232
- package/dist/components/builtin/console.cjs.map +0 -1
- package/dist/components/builtin/console.d.cts +0 -37
- package/dist/components/builtin/console.d.mts +0 -37
- package/dist/components/builtin/console.mjs +0 -1225
- package/dist/components/builtin/console.mjs.map +0 -1
- package/dist/components/builtin/index.cjs +0 -9
- package/dist/components/builtin/index.d.cts +0 -2
- package/dist/components/builtin/index.d.mts +0 -2
- package/dist/components/builtin/index.mjs +0 -3
- package/dist/components/entry/bin.cjs +0 -92
- package/dist/components/entry/bin.cjs.map +0 -1
- package/dist/components/entry/bin.mjs +0 -91
- package/dist/components/entry/bin.mjs.map +0 -1
- package/dist/components/entry/command.cjs +0 -54
- package/dist/components/entry/command.cjs.map +0 -1
- package/dist/components/entry/command.d.cts +0 -15
- package/dist/components/entry/command.d.mts +0 -15
- package/dist/components/entry/command.mjs +0 -53
- package/dist/components/entry/command.mjs.map +0 -1
- package/dist/components/entry/index.cjs +0 -3
- package/dist/components/entry/index.d.cts +0 -2
- package/dist/components/entry/index.d.mts +0 -2
- package/dist/components/entry/index.mjs +0 -3
- package/dist/components/shutdown.cjs +0 -93
- package/dist/components/shutdown.cjs.map +0 -1
- package/dist/components/shutdown.d.cts +0 -14
- package/dist/components/shutdown.d.mts +0 -14
- package/dist/components/shutdown.mjs +0 -91
- package/dist/components/shutdown.mjs.map +0 -1
- package/dist/contexts/command.cjs +0 -21
- package/dist/contexts/command.cjs.map +0 -1
- package/dist/contexts/command.mjs +0 -19
- package/dist/contexts/command.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"console.mjs","names":["code","For","Show","FunctionDeclaration","IfStatement","InterfaceDeclaration","InterfaceMember","TypeDeclaration","VarDeclaration","ReflectionKind","BuiltinFile","TSDoc","TSDocDefaultValue","TSDocExample","TSDocParam","TSDocRemarks","TSDocReturns","useColors","useTheme","ColorFunction","ansi16","ansi256","ansi16m","open","close","ColorsDeclaration","colors","_$createComponent","name","children","each","Object","keys","filter","color","idx","heading","type","initializer","_$createIntrinsic","comma","doubleHardline","enderPunctuation","theme","text","banner","title","header","footer","command","description","primary","secondary","tertiary","body","link","message","help","success","info","warning","danger","error","usage","bin","subcommand","options","params","border","outline","divider","app","WriteLineFunction","doc","optional","method","defaultValue","parameters","default","padding","MessageFunction","props","when","Boolean","WrapAnsiFunction","StripAnsiFunction","LinkFunction","condition","ConsoleBuiltin","id","builtinImports","utils"],"sources":["../../../src/components/builtin/console.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, For, Show } from \"@alloy-js/core\";\nimport type { ParameterDescriptor } from \"@alloy-js/typescript\";\nimport {\n FunctionDeclaration,\n IfStatement,\n InterfaceDeclaration,\n InterfaceMember,\n TypeDeclaration,\n VarDeclaration\n} from \"@alloy-js/typescript\";\nimport { ReflectionKind } from \"@powerlines/deepkit/vendor/type\";\nimport { BuiltinFile } from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport {\n TSDoc,\n TSDocDefaultValue,\n TSDocExample,\n TSDocParam,\n TSDocRemarks,\n TSDocReturns\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport { useColors, useTheme } from \"../../contexts/theme\";\nimport type {\n AnsiWrappers,\n BaseAnsiStylesKeys\n} from \"../../helpers/ansi-utils\";\n\n/**\n * A component to generate a console message function in a Shell Shock project.\n */\nfunction ColorFunction({\n ansi16,\n ansi256,\n ansi16m\n}: Record<\"ansi16\" | \"ansi256\" | \"ansi16m\", AnsiWrappers>) {\n return code` (text: string) => {\n try {\n if (!isColorSupported) {\n return String(text);\n }\n\n if (colorSupportLevels.stdout === 1) {\n return wrapAnsi(text, \"${ansi16.open}\", \"${ansi16.close}\");\n } else if (colorSupportLevels.stdout === 2) {\n return wrapAnsi(text, \"${ansi256.open}\", \"${ansi256.close}\");\n }\n\n return wrapAnsi(text, \"${ansi16m.open}\", \"${ansi16m.close}\");\n } catch {\n return String(text);\n }\n }\n`;\n}\n\n/**\n * A component to generate an object containing functions for coloring text in a Shell Shock project.\n */\nexport function ColorsDeclaration() {\n const colors = useColors();\n\n return (\n <>\n <TypeDeclaration export name=\"AnsiColor\">\n <For\n each={Object.keys(colors.ansi16).filter(color => color !== \"theme\")}>\n {(color, idx) => `${idx > 0 ? \" | \" : \"\"}\"${color}\"`}\n </For>\n </TypeDeclaration>\n\n {code`export type ThemeColors<T> = T extends object ? { [K in keyof T]: ThemeColor<T[K]>; } : ((text: string) => string); `}\n\n <TypeDeclaration export name=\"Colors\">\n {code`Record<AnsiColor, (text: string) => string> & ThemeColors<ThemeColorsConfig>`}\n </TypeDeclaration>\n\n <TSDoc heading=\"An object containing functions for coloring console applications. Each function corresponds to a terminal color. See {@link Colors} for available colors.\" />\n <VarDeclaration\n const\n export\n name=\"colors\"\n type=\"Colors\"\n initializer={\n <>\n {code` {\n `}\n <hbr />\n <For\n each={Object.keys(colors.ansi16).filter(\n color => color !== \"theme\"\n )}\n comma\n doubleHardline\n enderPunctuation>\n {color => (\n <>\n {code`${color}: `}\n <ColorFunction\n ansi16={colors.ansi16[color as BaseAnsiStylesKeys]}\n ansi256={colors.ansi256[color as BaseAnsiStylesKeys]}\n ansi16m={colors.ansi16m[color as BaseAnsiStylesKeys]}\n />\n </>\n )}\n </For>\n <hbr />\n {code`theme: {\n text: {\n banner: {\n title: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.banner.title}\n ansi256={colors.ansi256.theme.text.banner.title}\n ansi16m={colors.ansi16m.theme.text.banner.title}\n />\n )},\n header: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.banner.header}\n ansi256={colors.ansi256.theme.text.banner.header}\n ansi16m={colors.ansi16m.theme.text.banner.header}\n />\n )},\n footer: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.banner.footer}\n ansi256={colors.ansi256.theme.text.banner.footer}\n ansi16m={colors.ansi16m.theme.text.banner.footer}\n />\n )},\n command: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.banner.command}\n ansi256={colors.ansi256.theme.text.banner.command}\n ansi16m={colors.ansi16m.theme.text.banner.command}\n />\n )},\n description: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.banner.description}\n ansi256={\n colors.ansi256.theme.text.banner.description\n }\n ansi16m={\n colors.ansi16m.theme.text.banner.description\n }\n />\n )}\n },\n heading: {\n primary: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.heading.primary}\n ansi256={colors.ansi256.theme.text.heading.primary}\n ansi16m={colors.ansi16m.theme.text.heading.primary}\n />\n )},\n secondary: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.heading.secondary}\n ansi256={\n colors.ansi256.theme.text.heading.secondary\n }\n ansi16m={\n colors.ansi16m.theme.text.heading.secondary\n }\n />\n )},\n tertiary: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.heading.tertiary}\n ansi256={colors.ansi256.theme.text.heading.tertiary}\n ansi16m={colors.ansi16m.theme.text.heading.tertiary}\n />\n )}\n },\n body: {\n primary: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.body.primary}\n ansi256={colors.ansi256.theme.text.body.primary}\n ansi16m={colors.ansi16m.theme.text.body.primary}\n />\n )},\n secondary: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.body.secondary}\n ansi256={colors.ansi256.theme.text.body.secondary}\n ansi16m={colors.ansi16m.theme.text.body.secondary}\n />\n )},\n tertiary: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.body.tertiary}\n ansi256={colors.ansi256.theme.text.body.tertiary}\n ansi16m={colors.ansi16m.theme.text.body.tertiary}\n />\n )},\n link: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.body.link}\n ansi256={colors.ansi256.theme.text.body.link}\n ansi16m={colors.ansi16m.theme.text.body.link}\n />\n )}\n },\n message: {\n link: {\n help: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.link.help\n }\n ansi256={\n colors.ansi256.theme.text.message.link.help\n }\n ansi16m={\n colors.ansi16m.theme.text.message.link.help\n }\n />\n )},\n success: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.link.success\n }\n ansi256={\n colors.ansi256.theme.text.message.link.success\n }\n ansi16m={\n colors.ansi16m.theme.text.message.link.success\n }\n />\n )},\n info: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.link.info\n }\n ansi256={\n colors.ansi256.theme.text.message.link.info\n }\n ansi16m={\n colors.ansi16m.theme.text.message.link.info\n }\n />\n )},\n warning: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.link.warning\n }\n ansi256={\n colors.ansi256.theme.text.message.link.warning\n }\n ansi16m={\n colors.ansi16m.theme.text.message.link.warning\n }\n />\n )},\n danger: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.link.danger\n }\n ansi256={\n colors.ansi256.theme.text.message.link.danger\n }\n ansi16m={\n colors.ansi16m.theme.text.message.link.danger\n }\n />\n )},\n error: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.link.error\n }\n ansi256={\n colors.ansi256.theme.text.message.link.error\n }\n ansi16m={\n colors.ansi16m.theme.text.message.link.error\n }\n />\n )}\n },\n header: {\n help: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.header.help\n }\n ansi256={\n colors.ansi256.theme.text.message.header.help\n }\n ansi16m={\n colors.ansi16m.theme.text.message.header.help\n }\n />\n )},\n success: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.header.success\n }\n ansi256={\n colors.ansi256.theme.text.message.header.success\n }\n ansi16m={\n colors.ansi16m.theme.text.message.header.success\n }\n />\n )},\n info: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.header.info\n }\n ansi256={\n colors.ansi256.theme.text.message.header.info\n }\n ansi16m={\n colors.ansi16m.theme.text.message.header.info\n }\n />\n )},\n warning: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.header.warning\n }\n ansi256={\n colors.ansi256.theme.text.message.header.warning\n }\n ansi16m={\n colors.ansi16m.theme.text.message.header.warning\n }\n />\n )},\n danger: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.header.danger\n }\n ansi256={\n colors.ansi256.theme.text.message.header.danger\n }\n ansi16m={\n colors.ansi16m.theme.text.message.header.danger\n }\n />\n )},\n error: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.header.error\n }\n ansi256={\n colors.ansi256.theme.text.message.header.error\n }\n ansi16m={\n colors.ansi16m.theme.text.message.header.error\n }\n />\n )}\n },\n footer: {\n help: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.footer.help\n }\n ansi256={\n colors.ansi256.theme.text.message.footer.help\n }\n ansi16m={\n colors.ansi16m.theme.text.message.footer.help\n }\n />\n )},\n success: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.footer.success\n }\n ansi256={\n colors.ansi256.theme.text.message.footer.success\n }\n ansi16m={\n colors.ansi16m.theme.text.message.footer.success\n }\n />\n )},\n info: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.footer.info\n }\n ansi256={\n colors.ansi256.theme.text.message.footer.info\n }\n ansi16m={\n colors.ansi16m.theme.text.message.footer.info\n }\n />\n )},\n warning: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.footer.warning\n }\n ansi256={\n colors.ansi256.theme.text.message.footer.warning\n }\n ansi16m={\n colors.ansi16m.theme.text.message.footer.warning\n }\n />\n )},\n danger: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.footer.danger\n }\n ansi256={\n colors.ansi256.theme.text.message.footer.danger\n }\n ansi16m={\n colors.ansi16m.theme.text.message.footer.danger\n }\n />\n )},\n error: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.footer.error\n }\n ansi256={\n colors.ansi256.theme.text.message.footer.error\n }\n ansi16m={\n colors.ansi16m.theme.text.message.footer.error\n }\n />\n )}\n },\n description: {\n help: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.description\n .help\n }\n ansi256={\n colors.ansi256.theme.text.message.description\n .help\n }\n ansi16m={\n colors.ansi16m.theme.text.message.description\n .help\n }\n />\n )},\n success: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.description\n .success\n }\n ansi256={\n colors.ansi256.theme.text.message.description\n .success\n }\n ansi16m={\n colors.ansi16m.theme.text.message.description\n .success\n }\n />\n )},\n info: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.description\n .info\n }\n ansi256={\n colors.ansi256.theme.text.message.description\n .info\n }\n ansi16m={\n colors.ansi16m.theme.text.message.description\n .info\n }\n />\n )},\n warning: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.description\n .warning\n }\n ansi256={\n colors.ansi256.theme.text.message.description\n .warning\n }\n ansi16m={\n colors.ansi16m.theme.text.message.description\n .warning\n }\n />\n )},\n danger: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.description\n .danger\n }\n ansi256={\n colors.ansi256.theme.text.message.description\n .danger\n }\n ansi16m={\n colors.ansi16m.theme.text.message.description\n .danger\n }\n />\n )},\n error: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.text.message.description\n .error\n }\n ansi256={\n colors.ansi256.theme.text.message.description\n .error\n }\n ansi16m={\n colors.ansi16m.theme.text.message.description\n .error\n }\n />\n )}\n }\n },\n usage: {\n bin: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.usage.bin}\n ansi256={colors.ansi256.theme.text.usage.bin}\n ansi16m={colors.ansi16m.theme.text.usage.bin}\n />\n )},\n command: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.usage.command}\n ansi256={colors.ansi256.theme.text.usage.command}\n ansi16m={colors.ansi16m.theme.text.usage.command}\n />\n )},\n subcommand: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.usage.subcommand}\n ansi256={colors.ansi256.theme.text.usage.subcommand}\n ansi16m={colors.ansi16m.theme.text.usage.subcommand}\n />\n )},\n options: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.usage.options}\n ansi256={colors.ansi256.theme.text.usage.options}\n ansi16m={colors.ansi16m.theme.text.usage.options}\n />\n )},\n params: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.usage.params}\n ansi256={colors.ansi256.theme.text.usage.params}\n ansi16m={colors.ansi16m.theme.text.usage.params}\n />\n )},\n description: ${(\n <ColorFunction\n ansi16={colors.ansi16.theme.text.usage.description}\n ansi256={\n colors.ansi256.theme.text.usage.description\n }\n ansi16m={\n colors.ansi16m.theme.text.usage.description\n }\n />\n )}\n }\n },\n border: {\n banner: {\n outline: {\n primary: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.banner.outline\n .primary\n }\n ansi256={\n colors.ansi256.theme.border.banner.outline\n .primary\n }\n ansi16m={\n colors.ansi16m.theme.border.banner.outline\n .primary\n }\n />\n )},\n secondary: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.banner.outline\n .secondary\n }\n ansi256={\n colors.ansi256.theme.border.banner.outline\n .secondary\n }\n ansi16m={\n colors.ansi16m.theme.border.banner.outline\n .secondary\n }\n />\n )},\n tertiary: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.banner.outline\n .tertiary\n }\n ansi256={\n colors.ansi256.theme.border.banner.outline\n .tertiary\n }\n ansi16m={\n colors.ansi16m.theme.border.banner.outline\n .tertiary\n }\n />\n )}\n },\n divider: {\n primary: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.banner.divider\n .primary\n }\n ansi256={\n colors.ansi256.theme.border.banner.divider\n .primary\n }\n ansi16m={\n colors.ansi16m.theme.border.banner.divider\n .primary\n }\n />\n )},\n secondary: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.banner.divider\n .secondary\n }\n ansi256={\n colors.ansi256.theme.border.banner.divider\n .secondary\n }\n ansi16m={\n colors.ansi16m.theme.border.banner.divider\n .secondary\n }\n />\n )},\n tertiary: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.banner.divider\n .tertiary\n }\n ansi256={\n colors.ansi256.theme.border.banner.divider\n .tertiary\n }\n ansi16m={\n colors.ansi16m.theme.border.banner.divider\n .tertiary\n }\n />\n )}\n }\n },\n app: {\n outline: {\n primary: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.app.outline.primary\n }\n ansi256={\n colors.ansi256.theme.border.app.outline.primary\n }\n ansi16m={\n colors.ansi16m.theme.border.app.outline.primary\n }\n />\n )},\n secondary: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.app.outline.secondary\n }\n ansi256={\n colors.ansi256.theme.border.app.outline.secondary\n }\n ansi16m={\n colors.ansi16m.theme.border.app.outline.secondary\n }\n />\n )},\n tertiary: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.app.outline.tertiary\n }\n ansi256={\n colors.ansi256.theme.border.app.outline.tertiary\n }\n ansi16m={\n colors.ansi16m.theme.border.app.outline.tertiary\n }\n />\n )}\n },\n divider: {\n primary: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.app.divider.primary\n }\n ansi256={\n colors.ansi256.theme.border.app.divider.primary\n }\n ansi16m={\n colors.ansi16m.theme.border.app.divider.primary\n }\n />\n )},\n secondary: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.app.divider.secondary\n }\n ansi256={\n colors.ansi256.theme.border.app.divider.secondary\n }\n ansi16m={\n colors.ansi16m.theme.border.app.divider.secondary\n }\n />\n )},\n tertiary: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.app.divider.tertiary\n }\n ansi256={\n colors.ansi256.theme.border.app.divider.tertiary\n }\n ansi16m={\n colors.ansi16m.theme.border.app.divider.tertiary\n }\n />\n )}\n }\n },\n message: {\n outline: {\n help: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.message.outline.help\n }\n ansi256={\n colors.ansi256.theme.border.message.outline.help\n }\n ansi16m={\n colors.ansi16m.theme.border.message.outline.help\n }\n />\n )},\n success: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.message.outline.success\n }\n ansi256={\n colors.ansi256.theme.border.message.outline\n .success\n }\n ansi16m={\n colors.ansi16m.theme.border.message.outline\n .success\n }\n />\n )},\n info: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.message.outline.info\n }\n ansi256={\n colors.ansi256.theme.border.message.outline.info\n }\n ansi16m={\n colors.ansi16m.theme.border.message.outline.info\n }\n />\n )},\n warning: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.message.outline.warning\n }\n ansi256={\n colors.ansi256.theme.border.message.outline\n .warning\n }\n ansi16m={\n colors.ansi16m.theme.border.message.outline\n .warning\n }\n />\n )},\n danger: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.message.outline.danger\n }\n ansi256={\n colors.ansi256.theme.border.message.outline.danger\n }\n ansi16m={\n colors.ansi16m.theme.border.message.outline.danger\n }\n />\n )},\n error: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.message.outline.error\n }\n ansi256={\n colors.ansi256.theme.border.message.outline.error\n }\n ansi16m={\n colors.ansi16m.theme.border.message.outline.error\n }\n />\n )}\n },\n divider: {\n help: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.message.divider.help\n }\n ansi256={\n colors.ansi256.theme.border.message.divider.help\n }\n ansi16m={\n colors.ansi16m.theme.border.message.divider.help\n }\n />\n )},\n success: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.message.divider.success\n }\n ansi256={\n colors.ansi256.theme.border.message.divider\n .success\n }\n ansi16m={\n colors.ansi16m.theme.border.message.divider\n .success\n }\n />\n )},\n info: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.message.divider.info\n }\n ansi256={\n colors.ansi256.theme.border.message.divider.info\n }\n ansi16m={\n colors.ansi16m.theme.border.message.divider.info\n }\n />\n )},\n warning: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.message.divider.warning\n }\n ansi256={\n colors.ansi256.theme.border.message.divider\n .warning\n }\n ansi16m={\n colors.ansi16m.theme.border.message.divider\n .warning\n }\n />\n )},\n danger: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.message.divider.danger\n }\n ansi256={\n colors.ansi256.theme.border.message.divider.danger\n }\n ansi16m={\n colors.ansi16m.theme.border.message.divider.danger\n }\n />\n )},\n error: ${(\n <ColorFunction\n ansi16={\n colors.ansi16.theme.border.message.divider.error\n }\n ansi256={\n colors.ansi256.theme.border.message.divider.error\n }\n ansi16m={\n colors.ansi16m.theme.border.message.divider.error\n }\n />\n )}\n }\n }\n }\n }\n }\n`}\n </>\n }\n />\n </>\n );\n}\n\n/**\n * A component to generate the `writeLine` function in the `shell-shock:console` builtin module.\n */\nexport function WriteLineFunction() {\n const theme = useTheme();\n\n return (\n <>\n <InterfaceDeclaration export name=\"WriteLineOptions\">\n <InterfaceMember\n doc={\n <TSDoc heading=\"Padding to apply to the line\">\n <TSDocRemarks>\n {`The amount of padding (in spaces) to apply to the line when writing to the console. This value is applied to both the left and right sides of the line. If not specified, the default padding defined in the current theme configuration will be used.`}\n </TSDocRemarks>\n </TSDoc>\n }\n name=\"padding\"\n optional\n type=\"number\"\n />\n <InterfaceMember\n doc={\n <TSDoc heading=\"Console function to use for writing the line\">\n <TSDocRemarks>\n {`The console function to use for writing the line. If not specified, the default console function \\`console.log\\` will be used.`}\n </TSDocRemarks>\n <TSDocDefaultValue\n type={ReflectionKind.method}\n defaultValue={`\\`console.log\\``}\n />\n </TSDoc>\n }\n name=\"consoleFn\"\n optional\n type=\"(text: string) => void\"\n />\n </InterfaceDeclaration>\n\n <TSDoc heading=\"Write a line to the console.\">\n <TSDocRemarks>\n {`This function writes a line to the console, applying the appropriate padding as defined in the current theme configuration and wrapping as needed.`}\n </TSDocRemarks>\n\n <TSDocParam name=\"text\">\n {`The line text to write to the console.`}\n </TSDocParam>\n <TSDocParam name=\"padding\">{`Padding to apply to the line`}</TSDocParam>\n </TSDoc>\n <FunctionDeclaration\n export\n name={\"writeLine\"}\n parameters={[\n {\n name: \"text\",\n type: \"string | number | boolean | null\",\n optional: true\n },\n {\n name: \"options\",\n type: \"WriteLineOptions\",\n default: \"{}\"\n }\n ]}>\n {code`const consoleFn = options.consoleFn ?? console.log;\nif (text === undefined || text === null || text === \"\") {\n consoleFn(\"\");\n return;\n}\n\nconst str = String(text);\nconst padding = Math.max(options.padding ?? ${theme.padding.app}, 0);\n\nif (stripAnsi(str).length + padding * 2 <= process.stdout.columns) {\n consoleFn(\\`\\${\" \".repeat(padding)}\\${str}\\`);\n} else {\n const words = str.split(\" \");\n let line = \"\";\n for (let i = 0; i < words.length; i++) {\n const word = words[i]!;\n if (line.length + stripAnsi(word).length + 1 <= process.stdout.columns - padding * 2) {\n line += (line ? \" \" : \"\") + word;\n } else {\n consoleFn(\\`\\${\" \".repeat(padding)}\\${line}\\`);\n line = word;\n }\n }\n\n if (line && stripAnsi(line).length > 0) {\n consoleFn(\\`\\${\" \".repeat(padding)}\\${line}\\`);\n }\n}\n`}\n </FunctionDeclaration>\n </>\n );\n}\n\nexport interface MessageFunctionProps {\n type?:\n | \"success\"\n | \"help\"\n | \"info\"\n | \"verbose\"\n | \"warning\"\n | \"danger\"\n | \"error\";\n}\n\n/**\n * A component to generate the message functions in the `shell-shock:console` builtin module.\n */\nexport function MessageFunction(props: MessageFunctionProps) {\n const { type } = props;\n\n return (\n <>\n <TSDoc\n heading={`Write ${\n type === \"error\" || type === \"info\" ? \"an\" : \"a\"\n } ${type ? (type === \"info\" ? \"informational\" : type) : \"\"} message to the console.`}>\n <TSDocRemarks>\n {`This function initializes the Powerlines environment configuration object.`}\n </TSDocRemarks>\n\n <Show when={!type}>\n <TSDocParam name=\"type\">\n {`The type of message to write to the console.`}\n </TSDocParam>\n </Show>\n <TSDocParam name=\"message\">\n {`The message(s) to write to the console.`}\n </TSDocParam>\n </TSDoc>\n <FunctionDeclaration\n export\n name={type || \"message\"}\n parameters={\n [\n !type && {\n name: \"type\",\n type: `\"success\" | \"help\" | \"info\" | \"verbose\" | \"warning\" | \"danger\" | \"error\"`,\n optional: false\n },\n {\n name: \"message\",\n type: \"string\",\n optional: false\n }\n ].filter(Boolean) as ParameterDescriptor[]\n }>\n {code`writeLine(message, { consoleFn: console.${\n type === \"warning\"\n ? \"warn\"\n : type === \"error\" || type === \"danger\"\n ? \"error\"\n : type === \"info\"\n ? \"info\"\n : type === \"verbose\"\n ? \"debug\"\n : \"log\"\n } });`}\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * A component to generate the `wrapAnsi` function in the `shell-shock:console` builtin module.\n */\nexport function WrapAnsiFunction() {\n return (\n <>\n <TSDoc heading=\"Applies ANSI escape codes to a string.\">\n <TSDocRemarks>\n {`Split text by /\\\\\\\\u001b[\\\\[|\\\\]][0-9;]*m/ and wrap non-ANSI parts with open/closeing tags.`}\n </TSDocRemarks>\n\n <TSDocExample>\n {`const result = wrapAnsi(\"Hello\\\\\\\\u001b[31mWorld\\\\\\\\u001b[0mAgain\", \"\\\\\\\\u001b[36m\", \"\\\\\\\\u001b[39\");\\nconsole.log(result); // \"\\\\\\\\u001b[36mHello\\\\\\\\u001b[39\\\\\\\\u001b[31mWorld\\\\\\\\u001b[0m\\\\\\\\u001b[36mAgain\\\\\\\\u001b[39\"`}\n </TSDocExample>\n\n <TSDocParam name=\"text\">\n {`The text to apply ANSI codes to.`}\n </TSDocParam>\n <TSDocParam name=\"open\">{`The opening ANSI code.`}</TSDocParam>\n <TSDocParam name=\"close\">{`The closing ANSI code.`}</TSDocParam>\n <TSDocReturns>{`The text with ANSI codes applied.`}</TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n name=\"wrapAnsi\"\n parameters={[\n {\n name: \"text\",\n type: \"string | number\",\n optional: false\n },\n {\n name: \"open\",\n type: \"string\",\n optional: false\n },\n { name: \"close\", type: \"string\", optional: false }\n ]}>\n {code`const str = String(text);\n const tokens: string[] = [];\n\n let last = 0;\n let match: RegExpExecArray | null;\n while ((match = /\\\\\\\\u001b[\\\\[|\\\\]][0-9;]*m/g.exec(str)) !== null) {\n if (match.index > last) tokens.push(str.slice(last, match.index));\n tokens.push(match[0]);\n last = match.index + match[0].length;\n }\n\n if (last < str.length) {\n tokens.push(str.slice(last));\n }\n\n let result = \"\";\n for (let i = 0; i < tokens.length; i++) {\n const seg = tokens[i]!;\n if (/^\\\\\\\\u001b[\\\\[|\\\\]][0-9;]*m$/.test(seg)) {\n result += seg;\n continue;\n }\n\n if (!seg) {\n continue;\n }\n\n result += i > 0 && /^\\\\\\\\u001b[\\\\[|\\\\]][0-9;]*m$/.test(tokens[i - 1]!) && i + 1 < tokens.length && ansiExactRegex.test(tokens[i + 1]!) ? seg : \\`\\${open}\\${seg}\\${close}\\`;\n }\n\n return result;\n`}\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * A component to generate the `stripAnsi` function in the `shell-shock:console` builtin module.\n */\nexport function StripAnsiFunction() {\n return (\n <>\n <TSDoc heading=\"Removes ANSI escape codes from a string.\">\n <TSDocExample>\n {`const result = stripAnsi(\"Hello\\\\\\\\u001b[31mWorld\\\\\\\\u001b[0mAgain\"); // \"HelloWorldAgain\"`}\n </TSDocExample>\n\n <TSDocParam name=\"text\">\n {`The text to strip ANSI codes from.`}\n </TSDocParam>\n <TSDocReturns>{`The text with ANSI codes removed.`}</TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n name=\"stripAnsi\"\n parameters={[\n {\n name: \"text\",\n type: \"string | number\",\n optional: false\n }\n ]}>\n {code`return String(text).replace(new RegExp([\n String.raw\\`[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]+)*|[a-zA-Z\\\\d]+(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)\\`,\n String.raw\\`(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-nq-uy=><~]))\\`\n ].join(\"|\"), \"g\"), \"\");`}\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * A component to generate the `link` function in the `shell-shock:console` builtin module.\n */\nexport function LinkFunction() {\n return (\n <>\n <TSDoc heading=\"Render a hyperlink in the console.\">\n <TSDocParam name=\"url\">\n {`The URL to render as a hyperlink.`}\n </TSDocParam>\n <TSDocParam name=\"text\">\n {`The text to display for the link. If not provided, the URL will be used as the text.`}\n </TSDocParam>\n <TSDocReturns>{`The formatted hyperlink string.`}</TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n name=\"link\"\n parameters={[\n {\n name: \"url\",\n type: \"string\",\n optional: false\n },\n { name: \"text\", type: \"string\", optional: true }\n ]}>\n <IfStatement condition={code`isHyperlinkSupported()`}>\n {code`return \\`\\\\u001b]8;;\\${url}\\\\u0007\\${text ?? url}\\\\u001b]8;;\\\\u0007\\`;`}\n </IfStatement>\n <hbr />\n <IfStatement condition={code`isColorSupported`}>\n {code`return colors.underline(colors.theme.text.body.link(\\`$\\{text ?? url\\} $\\{url\\}\\`));`}\n </IfStatement>\n <hbr />\n {code`return \\`$\\{text ?? url\\} $\\{url\\}\\`;`}\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * A built-in console utilities module for Shell Shock.\n */\nexport function ConsoleBuiltin() {\n return (\n <BuiltinFile\n id=\"console\"\n description=\"A collection of helper utilities to assist in generating content meant for display in the console.\"\n builtinImports={{\n utils: [\n \"isColorSupported\",\n \"colorSupportLevels\",\n \"isHyperlinkSupported\"\n ]\n }}>\n <StripAnsiFunction />\n <hbr />\n <hbr />\n <WrapAnsiFunction />\n <hbr />\n <hbr />\n <ColorsDeclaration />\n <hbr />\n <hbr />\n <WriteLineFunction />\n <hbr />\n <hbr />\n <LinkFunction />\n <hbr />\n <hbr />\n <MessageFunction type=\"help\" />\n <hbr />\n <hbr />\n <MessageFunction type=\"success\" />\n <hbr />\n <hbr />\n <MessageFunction type=\"info\" />\n <hbr />\n <hbr />\n <MessageFunction type=\"verbose\" />\n <hbr />\n <hbr />\n <MessageFunction type=\"warning\" />\n <hbr />\n <hbr />\n <MessageFunction type=\"danger\" />\n <hbr />\n <hbr />\n <MessageFunction type=\"error\" />\n <hbr />\n <hbr />\n <MessageFunction />\n <hbr />\n <hbr />\n </BuiltinFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;AA+CA,SAASmB,cAAc,EACrBC,QACAC,SACAC,WACyD;AACzD,QAAOtB,IAAI;;;;;;;iCAOoBoB,OAAOG,KAAI,M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OAAA,EAAA,CAAA;IAAAA,gBAAA,OAAA,EAAA,CAAA;IAAAZ,gBAGpBqD,iBAAe,EAAC3C,MAAI,WAAA,CAAA;IAAAE,gBAAA,OAAA,EAAA,CAAA;IAAAA,gBAAA,OAAA,EAAA,CAAA;IAAAZ,gBAGpBqD,iBAAe,EAAC3C,MAAI,WAAA,CAAA;IAAAE,gBAAA,OAAA,EAAA,CAAA;IAAAA,gBAAA,OAAA,EAAA,CAAA;IAAAZ,gBAGpBqD,iBAAe,EAAC3C,MAAI,UAAA,CAAA;IAAAE,gBAAA,OAAA,EAAA,CAAA;IAAAA,gBAAA,OAAA,EAAA,CAAA;IAAAZ,gBAGpBqD,iBAAe,EAAC3C,MAAI,SAAA,CAAA;IAAAE,gBAAA,OAAA,EAAA,CAAA;IAAAA,gBAAA,OAAA,EAAA,CAAA;IAAAZ,gBAGpBqD,iBAAe,EAAA,CAAA;IAAAzC,gBAAA,OAAA,EAAA,CAAA;IAAAA,gBAAA,OAAA,EAAA,CAAA;IAAA;;EAAA,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const require_components_builtin_console = require('./console.cjs');
|
|
2
|
-
|
|
3
|
-
exports.ColorsDeclaration = require_components_builtin_console.ColorsDeclaration;
|
|
4
|
-
exports.ConsoleBuiltin = require_components_builtin_console.ConsoleBuiltin;
|
|
5
|
-
exports.LinkFunction = require_components_builtin_console.LinkFunction;
|
|
6
|
-
exports.MessageFunction = require_components_builtin_console.MessageFunction;
|
|
7
|
-
exports.StripAnsiFunction = require_components_builtin_console.StripAnsiFunction;
|
|
8
|
-
exports.WrapAnsiFunction = require_components_builtin_console.WrapAnsiFunction;
|
|
9
|
-
exports.WriteLineFunction = require_components_builtin_console.WriteLineFunction;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { ColorsDeclaration, ConsoleBuiltin, LinkFunction, MessageFunction, MessageFunctionProps, StripAnsiFunction, WrapAnsiFunction, WriteLineFunction } from "./console.cjs";
|
|
2
|
-
export { ColorsDeclaration, ConsoleBuiltin, LinkFunction, MessageFunction, MessageFunctionProps, StripAnsiFunction, WrapAnsiFunction, WriteLineFunction };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { ColorsDeclaration, ConsoleBuiltin, LinkFunction, MessageFunction, MessageFunctionProps, StripAnsiFunction, WrapAnsiFunction, WriteLineFunction } from "./console.mjs";
|
|
2
|
-
export { ColorsDeclaration, ConsoleBuiltin, LinkFunction, MessageFunction, MessageFunctionProps, StripAnsiFunction, WrapAnsiFunction, WriteLineFunction };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ColorsDeclaration, ConsoleBuiltin, LinkFunction, MessageFunction, StripAnsiFunction, WrapAnsiFunction, WriteLineFunction } from "./console.mjs";
|
|
2
|
-
|
|
3
|
-
export { ColorsDeclaration, ConsoleBuiltin, LinkFunction, MessageFunction, StripAnsiFunction, WrapAnsiFunction, WriteLineFunction };
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_components_command_router = require('../command-router.cjs');
|
|
3
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
5
|
-
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
6
|
-
let __powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
|
|
7
|
-
let __powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
|
|
8
|
-
let __powerlines_plugin_alloy_typescript_components_entry_file = require("@powerlines/plugin-alloy/typescript/components/entry-file");
|
|
9
|
-
|
|
10
|
-
//#region src/components/entry/bin.tsx
|
|
11
|
-
/**
|
|
12
|
-
* The binary entry point for the Shell Shock project.
|
|
13
|
-
*/
|
|
14
|
-
function BinEntry(props) {
|
|
15
|
-
const { prefix, postfix, builtinImports, ...rest } = props;
|
|
16
|
-
const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
|
|
17
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_entry_file.EntryFile, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
18
|
-
path: "bin",
|
|
19
|
-
get builtinImports() {
|
|
20
|
-
return {
|
|
21
|
-
console: [
|
|
22
|
-
"danger",
|
|
23
|
-
"error",
|
|
24
|
-
"verbose"
|
|
25
|
-
],
|
|
26
|
-
utils: ["hasFlag"],
|
|
27
|
-
...builtinImports ?? {}
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
get children() {
|
|
31
|
-
return [
|
|
32
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
33
|
-
get when() {
|
|
34
|
-
return Boolean(prefix);
|
|
35
|
-
},
|
|
36
|
-
children: prefix
|
|
37
|
-
}),
|
|
38
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
39
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { get heading() {
|
|
40
|
-
return `Binary entry point for the ${context?.config.title ? `${context?.config.title} ` : ""}CLI application.`;
|
|
41
|
-
} }),
|
|
42
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.FunctionDeclaration, {
|
|
43
|
-
async: true,
|
|
44
|
-
name: "main",
|
|
45
|
-
get children() {
|
|
46
|
-
return [
|
|
47
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
|
|
48
|
-
"const": true,
|
|
49
|
-
name: "args",
|
|
50
|
-
type: "string[]",
|
|
51
|
-
initializer: __alloy_js_core.code`process.argv;`
|
|
52
|
-
}),
|
|
53
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
54
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.IfStatement, {
|
|
55
|
-
condition: __alloy_js_core.code`hasFlag(["version", "v"], args)`,
|
|
56
|
-
get children() {
|
|
57
|
-
return __alloy_js_core.code`console.log(${context?.packageJson.version ? `"${context?.packageJson.version}"` : "0.0.1"});`;
|
|
58
|
-
}
|
|
59
|
-
}),
|
|
60
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.ElseClause, { get children() {
|
|
61
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_components_command_router.CommandRouter, {});
|
|
62
|
-
} })
|
|
63
|
-
];
|
|
64
|
-
}
|
|
65
|
-
}),
|
|
66
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
67
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
68
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
69
|
-
get when() {
|
|
70
|
-
return Boolean(postfix);
|
|
71
|
-
},
|
|
72
|
-
get fallback() {
|
|
73
|
-
return [__alloy_js_core.code`
|
|
74
|
-
try {
|
|
75
|
-
await main();
|
|
76
|
-
} catch (err) {
|
|
77
|
-
error(err);
|
|
78
|
-
process.exit(1);
|
|
79
|
-
}
|
|
80
|
-
`];
|
|
81
|
-
},
|
|
82
|
-
children: postfix
|
|
83
|
-
}),
|
|
84
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
85
|
-
];
|
|
86
|
-
}
|
|
87
|
-
}));
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
//#endregion
|
|
91
|
-
exports.BinEntry = BinEntry;
|
|
92
|
-
//# sourceMappingURL=bin.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bin.cjs","names":["code","Show","ElseClause","FunctionDeclaration","IfStatement","VarDeclaration","usePowerlines","EntryFile","TSDoc","CommandRouter","BinEntry","props","prefix","postfix","builtinImports","rest","context","_$createComponent","_$mergeProps","path","console","utils","children","when","Boolean","_$createIntrinsic","heading","config","title","async","name","type","initializer","condition","packageJson","version","fallback"],"sources":["../../../src/components/entry/bin.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 type { Children } from \"@alloy-js/core\";\nimport { code, Show } from \"@alloy-js/core\";\nimport {\n ElseClause,\n FunctionDeclaration,\n IfStatement,\n VarDeclaration\n} from \"@alloy-js/typescript\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport type { EntryFileProps } from \"@powerlines/plugin-alloy/typescript/components/entry-file\";\nimport { EntryFile } from \"@powerlines/plugin-alloy/typescript/components/entry-file\";\nimport { TSDoc } from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport type { ScriptPresetContext } from \"../../types/plugin\";\nimport { CommandRouter } from \"../command-router\";\n\nexport interface BinEntryProps\n extends Omit<EntryFileProps, \"path\" | \"hashbang\"> {\n prefix?: Children;\n postfix?: Children;\n}\n\n/**\n * The binary entry point for the Shell Shock project.\n */\nexport function BinEntry(props: BinEntryProps) {\n const { prefix, postfix, builtinImports, ...rest } = props;\n\n const context = usePowerlines<ScriptPresetContext>();\n\n return (\n <EntryFile\n {...rest}\n path=\"bin\"\n builtinImports={{\n console: [\"danger\", \"error\", \"verbose\"],\n utils: [\"hasFlag\"],\n ...(builtinImports ?? {})\n }}>\n <Show when={Boolean(prefix)}>{prefix}</Show>\n <hbr />\n <TSDoc\n heading={`Binary entry point for the ${context?.config.title ? `${context?.config.title} ` : \"\"}CLI application.`}></TSDoc>\n <FunctionDeclaration async name=\"main\">\n <VarDeclaration\n const\n name=\"args\"\n type=\"string[]\"\n initializer={code`process.argv;`}\n />\n <hbr />\n <IfStatement condition={code`hasFlag([\"version\", \"v\"], args)`}>\n {code`console.log(${context?.packageJson.version ? `\"${context?.packageJson.version}\"` : \"0.0.1\"});`}\n </IfStatement>\n <ElseClause>\n <CommandRouter />\n </ElseClause>\n </FunctionDeclaration>\n <hbr />\n <hbr />\n <Show\n when={Boolean(postfix)}\n fallback={\n <>{code`\n try {\n await main();\n } catch (err) {\n error(err);\n process.exit(1);\n }\n `}</>\n }>\n {postfix}\n </Show>\n <hbr />\n </EntryFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AA0CA,SAAgBU,SAASC,OAAsB;CAC7C,MAAM,EAAEC,QAAQC,SAASC,gBAAgB,GAAGC,SAASJ;CAErD,MAAMK,8EAA8C;AAEpD,yDACGT,kHACKQ,MAAI;EACRI,MAAI;EAAA,IACJL,iBAAc;AAAA,UAAE;IACdM,SAAS;KAAC;KAAU;KAAS;KAAU;IACvCC,OAAO,CAAC,UAAU;IAClB,GAAIP,kBAAkB,EAAE;IACzB;;EAAA,IAAAQ,WAAA;AAAA,UAAA;qDACArB,sBAAI;KAAA,IAACsB,OAAI;AAAA,aAAEC,QAAQZ,OAAO;;KAAAU,UAAGV;KAAM,CAAA;qDAAA,OAAA,EAAA,CAAA;qDAEnCJ,6DAAK,EAAA,IACJkB,UAAO;AAAA,YAAE,8BAA8BV,SAASW,OAAOC,QAAQ,GAAGZ,SAASW,OAAOC,MAAK,KAAM,GAAE;OAAkB,CAAA;qDAClHzB,2CAAmB;KAAC0B,OAAK;KAACC,MAAI;KAAA,IAAAR,WAAA;AAAA,aAAA;wDAC5BjB,sCAAc;QAAA,SAAA;QAEbyB,MAAI;QACJC,MAAI;QACJC,aAAahC,oBAAI;QAAe,CAAA;wDAAA,OAAA,EAAA,CAAA;wDAGjCI,mCAAW;QAAC6B,WAAWjC,oBAAI;QAAiC,IAAAsB,WAAA;AAAA,gBAC1DtB,oBAAI,eAAegB,SAASkB,YAAYC,UAAU,IAAInB,SAASkB,YAAYC,QAAO,KAAM,QAAO;;QAAI,CAAA;wDAErGjC,kCAAU,EAAA,IAAAoB,WAAA;AAAA,gEACRb,iDAAa,EAAA,CAAA;UAAA,CAAA;OAAA;;KAAA,CAAA;qDAAA,OAAA,EAAA,CAAA;qDAAA,OAAA,EAAA,CAAA;qDAKjBR,sBAAI;KAAA,IACHsB,OAAI;AAAA,aAAEC,QAAQX,QAAQ;;KAAA,IACtBuB,WAAQ;AAAA,aAAA,CACHpC,oBAAI;;;;;;;QAOV;;KAAAsB,UAEET;KAAO,CAAA;qDAAA,OAAA,EAAA,CAAA;IAAA;;EAAA,CAAA,CAAA"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { CommandRouter } from "../command-router.mjs";
|
|
2
|
-
import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { Show, code } from "@alloy-js/core";
|
|
4
|
-
import { ElseClause, FunctionDeclaration, IfStatement, VarDeclaration } from "@alloy-js/typescript";
|
|
5
|
-
import { TSDoc } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
|
|
6
|
-
import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
|
|
7
|
-
import { EntryFile } from "@powerlines/plugin-alloy/typescript/components/entry-file";
|
|
8
|
-
|
|
9
|
-
//#region src/components/entry/bin.tsx
|
|
10
|
-
/**
|
|
11
|
-
* The binary entry point for the Shell Shock project.
|
|
12
|
-
*/
|
|
13
|
-
function BinEntry(props) {
|
|
14
|
-
const { prefix, postfix, builtinImports, ...rest } = props;
|
|
15
|
-
const context = usePowerlines();
|
|
16
|
-
return createComponent(EntryFile, mergeProps(rest, {
|
|
17
|
-
path: "bin",
|
|
18
|
-
get builtinImports() {
|
|
19
|
-
return {
|
|
20
|
-
console: [
|
|
21
|
-
"danger",
|
|
22
|
-
"error",
|
|
23
|
-
"verbose"
|
|
24
|
-
],
|
|
25
|
-
utils: ["hasFlag"],
|
|
26
|
-
...builtinImports ?? {}
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
|
-
get children() {
|
|
30
|
-
return [
|
|
31
|
-
createComponent(Show, {
|
|
32
|
-
get when() {
|
|
33
|
-
return Boolean(prefix);
|
|
34
|
-
},
|
|
35
|
-
children: prefix
|
|
36
|
-
}),
|
|
37
|
-
createIntrinsic("hbr", {}),
|
|
38
|
-
createComponent(TSDoc, { get heading() {
|
|
39
|
-
return `Binary entry point for the ${context?.config.title ? `${context?.config.title} ` : ""}CLI application.`;
|
|
40
|
-
} }),
|
|
41
|
-
createComponent(FunctionDeclaration, {
|
|
42
|
-
async: true,
|
|
43
|
-
name: "main",
|
|
44
|
-
get children() {
|
|
45
|
-
return [
|
|
46
|
-
createComponent(VarDeclaration, {
|
|
47
|
-
"const": true,
|
|
48
|
-
name: "args",
|
|
49
|
-
type: "string[]",
|
|
50
|
-
initializer: code`process.argv;`
|
|
51
|
-
}),
|
|
52
|
-
createIntrinsic("hbr", {}),
|
|
53
|
-
createComponent(IfStatement, {
|
|
54
|
-
condition: code`hasFlag(["version", "v"], args)`,
|
|
55
|
-
get children() {
|
|
56
|
-
return code`console.log(${context?.packageJson.version ? `"${context?.packageJson.version}"` : "0.0.1"});`;
|
|
57
|
-
}
|
|
58
|
-
}),
|
|
59
|
-
createComponent(ElseClause, { get children() {
|
|
60
|
-
return createComponent(CommandRouter, {});
|
|
61
|
-
} })
|
|
62
|
-
];
|
|
63
|
-
}
|
|
64
|
-
}),
|
|
65
|
-
createIntrinsic("hbr", {}),
|
|
66
|
-
createIntrinsic("hbr", {}),
|
|
67
|
-
createComponent(Show, {
|
|
68
|
-
get when() {
|
|
69
|
-
return Boolean(postfix);
|
|
70
|
-
},
|
|
71
|
-
get fallback() {
|
|
72
|
-
return [code`
|
|
73
|
-
try {
|
|
74
|
-
await main();
|
|
75
|
-
} catch (err) {
|
|
76
|
-
error(err);
|
|
77
|
-
process.exit(1);
|
|
78
|
-
}
|
|
79
|
-
`];
|
|
80
|
-
},
|
|
81
|
-
children: postfix
|
|
82
|
-
}),
|
|
83
|
-
createIntrinsic("hbr", {})
|
|
84
|
-
];
|
|
85
|
-
}
|
|
86
|
-
}));
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
//#endregion
|
|
90
|
-
export { BinEntry };
|
|
91
|
-
//# sourceMappingURL=bin.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bin.mjs","names":["code","Show","ElseClause","FunctionDeclaration","IfStatement","VarDeclaration","usePowerlines","EntryFile","TSDoc","CommandRouter","BinEntry","props","prefix","postfix","builtinImports","rest","context","_$createComponent","_$mergeProps","path","console","utils","children","when","Boolean","_$createIntrinsic","heading","config","title","async","name","type","initializer","condition","packageJson","version","fallback"],"sources":["../../../src/components/entry/bin.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 type { Children } from \"@alloy-js/core\";\nimport { code, Show } from \"@alloy-js/core\";\nimport {\n ElseClause,\n FunctionDeclaration,\n IfStatement,\n VarDeclaration\n} from \"@alloy-js/typescript\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport type { EntryFileProps } from \"@powerlines/plugin-alloy/typescript/components/entry-file\";\nimport { EntryFile } from \"@powerlines/plugin-alloy/typescript/components/entry-file\";\nimport { TSDoc } from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport type { ScriptPresetContext } from \"../../types/plugin\";\nimport { CommandRouter } from \"../command-router\";\n\nexport interface BinEntryProps\n extends Omit<EntryFileProps, \"path\" | \"hashbang\"> {\n prefix?: Children;\n postfix?: Children;\n}\n\n/**\n * The binary entry point for the Shell Shock project.\n */\nexport function BinEntry(props: BinEntryProps) {\n const { prefix, postfix, builtinImports, ...rest } = props;\n\n const context = usePowerlines<ScriptPresetContext>();\n\n return (\n <EntryFile\n {...rest}\n path=\"bin\"\n builtinImports={{\n console: [\"danger\", \"error\", \"verbose\"],\n utils: [\"hasFlag\"],\n ...(builtinImports ?? {})\n }}>\n <Show when={Boolean(prefix)}>{prefix}</Show>\n <hbr />\n <TSDoc\n heading={`Binary entry point for the ${context?.config.title ? `${context?.config.title} ` : \"\"}CLI application.`}></TSDoc>\n <FunctionDeclaration async name=\"main\">\n <VarDeclaration\n const\n name=\"args\"\n type=\"string[]\"\n initializer={code`process.argv;`}\n />\n <hbr />\n <IfStatement condition={code`hasFlag([\"version\", \"v\"], args)`}>\n {code`console.log(${context?.packageJson.version ? `\"${context?.packageJson.version}\"` : \"0.0.1\"});`}\n </IfStatement>\n <ElseClause>\n <CommandRouter />\n </ElseClause>\n </FunctionDeclaration>\n <hbr />\n <hbr />\n <Show\n when={Boolean(postfix)}\n fallback={\n <>{code`\n try {\n await main();\n } catch (err) {\n error(err);\n process.exit(1);\n }\n `}</>\n }>\n {postfix}\n </Show>\n <hbr />\n </EntryFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;AA0CA,SAAgBU,SAASC,OAAsB;CAC7C,MAAM,EAAEC,QAAQC,SAASC,gBAAgB,GAAGC,SAASJ;CAErD,MAAMK,UAAUV,eAAoC;AAEpD,QAAAW,gBACGV,WAASW,WACJH,MAAI;EACRI,MAAI;EAAA,IACJL,iBAAc;AAAA,UAAE;IACdM,SAAS;KAAC;KAAU;KAAS;KAAU;IACvCC,OAAO,CA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_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
4
|
-
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
5
|
-
let __powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
|
|
6
|
-
let __powerlines_plugin_alloy_typescript_components_entry_file = require("@powerlines/plugin-alloy/typescript/components/entry-file");
|
|
7
|
-
|
|
8
|
-
//#region src/components/entry/command.tsx
|
|
9
|
-
/**
|
|
10
|
-
* The command entry point for the Shell Shock project.
|
|
11
|
-
*/
|
|
12
|
-
function CommandEntry({ command }) {
|
|
13
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_entry_file.EntryFile, {
|
|
14
|
-
get path() {
|
|
15
|
-
return command.path.join("/");
|
|
16
|
-
},
|
|
17
|
-
builtinImports: { "console": ["parseArgs"] },
|
|
18
|
-
get children() {
|
|
19
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
20
|
-
get heading() {
|
|
21
|
-
return command.description;
|
|
22
|
-
},
|
|
23
|
-
get children() {
|
|
24
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocTitle, { get children() {
|
|
25
|
-
return command.title;
|
|
26
|
-
} }), (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
27
|
-
name: "args",
|
|
28
|
-
children: `The command-line arguments passed to the command.`
|
|
29
|
-
})];
|
|
30
|
-
}
|
|
31
|
-
}), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.FunctionDeclaration, {
|
|
32
|
-
"export": true,
|
|
33
|
-
async: true,
|
|
34
|
-
name: "handler",
|
|
35
|
-
parameters: [{
|
|
36
|
-
name: "args",
|
|
37
|
-
type: "string[]"
|
|
38
|
-
}],
|
|
39
|
-
get children() {
|
|
40
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
|
|
41
|
-
"const": true,
|
|
42
|
-
name: "parsedArgs",
|
|
43
|
-
type: "Record<string, string | number | boolean | (string | number)[]>",
|
|
44
|
-
initializer: __alloy_js_core.code`parseArgs(args);`
|
|
45
|
-
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
46
|
-
}
|
|
47
|
-
})];
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
//#endregion
|
|
53
|
-
exports.CommandEntry = CommandEntry;
|
|
54
|
-
//# sourceMappingURL=command.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command.cjs","names":["code","FunctionDeclaration","VarDeclaration","EntryFile","TSDoc","TSDocParam","TSDocTitle","CommandEntry","command","_$createComponent","path","join","builtinImports","children","heading","description","title","name","async","parameters","type","initializer","_$createIntrinsic"],"sources":["../../../src/components/entry/command.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 { FunctionDeclaration, VarDeclaration } from \"@alloy-js/typescript\";\nimport { EntryFile } from \"@powerlines/plugin-alloy/typescript/components/entry-file\";\nimport {\n TSDoc,\n TSDocParam,\n TSDocTitle\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport type { CommandTree } from \"@shell-shock/core/types/command\";\n\n/**\n * The command entry point for the Shell Shock project.\n */\nexport function CommandEntry({ command }: { command: CommandTree }) {\n return (\n <EntryFile\n path={command.path.join(\"/\")}\n builtinImports={{\n \"console\": [\"parseArgs\"]\n }}>\n <TSDoc heading={command.description}>\n <TSDocTitle>{command.title}</TSDocTitle>\n <TSDocParam name=\"args\">{`The command-line arguments passed to the command.`}</TSDocParam>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"handler\"\n parameters={[{ name: \"args\", type: \"string[]\" }]}>\n <VarDeclaration\n const\n name=\"parsedArgs\"\n type=\"Record<string, string | number | boolean | (string | number)[]>\"\n initializer={code`parseArgs(args);`}\n />\n <hbr />\n </FunctionDeclaration>\n </EntryFile>\n );\n}\n"],"mappings":";;;;;;;;;;;AA+BA,SAAgBO,aAAa,EAAEC,WAAqC;AAClE,yDACGL,sEAAS;EAAA,IACRO,OAAI;AAAA,UAAEF,QAAQE,KAAKC,KAAK,IAAI;;EAC5BC,gBAAgB,EACd,WAAW,CAAC,YAAW,EACxB;EAAA,IAAAC,WAAA;AAAA,UAAA,kDACAT,6DAAK;IAAA,IAACU,UAAO;AAAA,YAAEN,QAAQO;;IAAW,IAAAF,WAAA;AAAA,YAAA,kDAChCP,kEAAU,EAAA,IAAAO,WAAA;AAAA,aAAEL,QAAQQ;QAAK,CAAA,mDACzBX,kEAAU;MAACY,MAAI;MAAAJ,UAAS;MAAmD,CAAA,CAAA;;IAAA,CAAA,mDAE7EZ,2CAAmB;IAAA,UAAA;IAElBiB,OAAK;IACLD,MAAI;IACJE,YAAY,CAAC;KAAEF,MAAM;KAAQG,MAAM;KAAY,CAAC;IAAA,IAAAP,WAAA;AAAA,YAAA,kDAC/CX,sCAAc;MAAA,SAAA;MAEbe,MAAI;MACJG,MAAI;MACJC,aAAarB,oBAAI;MAAkB,CAAA,mDAAA,OAAA,EAAA,CAAA,CAAA;;IAAA,CAAA,CAAA;;EAAA,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
2
|
-
import { CommandTree } from "@shell-shock/core/types/command";
|
|
3
|
-
|
|
4
|
-
//#region src/components/entry/command.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* The command entry point for the Shell Shock project.
|
|
7
|
-
*/
|
|
8
|
-
declare function CommandEntry({
|
|
9
|
-
command
|
|
10
|
-
}: {
|
|
11
|
-
command: CommandTree;
|
|
12
|
-
}): _alloy_js_core0.Children;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { CommandEntry };
|
|
15
|
-
//# sourceMappingURL=command.d.cts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as _alloy_js_core3 from "@alloy-js/core";
|
|
2
|
-
import { CommandTree } from "@shell-shock/core/types/command";
|
|
3
|
-
|
|
4
|
-
//#region src/components/entry/command.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* The command entry point for the Shell Shock project.
|
|
7
|
-
*/
|
|
8
|
-
declare function CommandEntry({
|
|
9
|
-
command
|
|
10
|
-
}: {
|
|
11
|
-
command: CommandTree;
|
|
12
|
-
}): _alloy_js_core3.Children;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { CommandEntry };
|
|
15
|
-
//# sourceMappingURL=command.d.mts.map
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { code } from "@alloy-js/core";
|
|
3
|
-
import { FunctionDeclaration, VarDeclaration } from "@alloy-js/typescript";
|
|
4
|
-
import { TSDoc, TSDocParam, TSDocTitle } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
|
|
5
|
-
import { EntryFile } from "@powerlines/plugin-alloy/typescript/components/entry-file";
|
|
6
|
-
|
|
7
|
-
//#region src/components/entry/command.tsx
|
|
8
|
-
/**
|
|
9
|
-
* The command entry point for the Shell Shock project.
|
|
10
|
-
*/
|
|
11
|
-
function CommandEntry({ command }) {
|
|
12
|
-
return createComponent(EntryFile, {
|
|
13
|
-
get path() {
|
|
14
|
-
return command.path.join("/");
|
|
15
|
-
},
|
|
16
|
-
builtinImports: { "console": ["parseArgs"] },
|
|
17
|
-
get children() {
|
|
18
|
-
return [createComponent(TSDoc, {
|
|
19
|
-
get heading() {
|
|
20
|
-
return command.description;
|
|
21
|
-
},
|
|
22
|
-
get children() {
|
|
23
|
-
return [createComponent(TSDocTitle, { get children() {
|
|
24
|
-
return command.title;
|
|
25
|
-
} }), createComponent(TSDocParam, {
|
|
26
|
-
name: "args",
|
|
27
|
-
children: `The command-line arguments passed to the command.`
|
|
28
|
-
})];
|
|
29
|
-
}
|
|
30
|
-
}), createComponent(FunctionDeclaration, {
|
|
31
|
-
"export": true,
|
|
32
|
-
async: true,
|
|
33
|
-
name: "handler",
|
|
34
|
-
parameters: [{
|
|
35
|
-
name: "args",
|
|
36
|
-
type: "string[]"
|
|
37
|
-
}],
|
|
38
|
-
get children() {
|
|
39
|
-
return [createComponent(VarDeclaration, {
|
|
40
|
-
"const": true,
|
|
41
|
-
name: "parsedArgs",
|
|
42
|
-
type: "Record<string, string | number | boolean | (string | number)[]>",
|
|
43
|
-
initializer: code`parseArgs(args);`
|
|
44
|
-
}), createIntrinsic("hbr", {})];
|
|
45
|
-
}
|
|
46
|
-
})];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
//#endregion
|
|
52
|
-
export { CommandEntry };
|
|
53
|
-
//# sourceMappingURL=command.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command.mjs","names":["code","FunctionDeclaration","VarDeclaration","EntryFile","TSDoc","TSDocParam","TSDocTitle","CommandEntry","command","_$createComponent","path","join","builtinImports","children","heading","description","title","name","async","parameters","type","initializer","_$createIntrinsic"],"sources":["../../../src/components/entry/command.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 { FunctionDeclaration, VarDeclaration } from \"@alloy-js/typescript\";\nimport { EntryFile } from \"@powerlines/plugin-alloy/typescript/components/entry-file\";\nimport {\n TSDoc,\n TSDocParam,\n TSDocTitle\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport type { CommandTree } from \"@shell-shock/core/types/command\";\n\n/**\n * The command entry point for the Shell Shock project.\n */\nexport function CommandEntry({ command }: { command: CommandTree }) {\n return (\n <EntryFile\n path={command.path.join(\"/\")}\n builtinImports={{\n \"console\": [\"parseArgs\"]\n }}>\n <TSDoc heading={command.description}>\n <TSDocTitle>{command.title}</TSDocTitle>\n <TSDocParam name=\"args\">{`The command-line arguments passed to the command.`}</TSDocParam>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"handler\"\n parameters={[{ name: \"args\", type: \"string[]\" }]}>\n <VarDeclaration\n const\n name=\"parsedArgs\"\n type=\"Record<string, string | number | boolean | (string | number)[]>\"\n initializer={code`parseArgs(args);`}\n />\n <hbr />\n </FunctionDeclaration>\n </EntryFile>\n );\n}\n"],"mappings":";;;;;;;;;;AA+BA,SAAgBO,aAAa,EAAEC,WAAqC;AAClE,QAAAC,gBACGN,WAAS;EAAA,IACRO,OAAI;AAAA,UAAEF,QAAQE,KAAKC,KAAK,IAAI;;EAC5BC,gBAAgB,EACd,WAAW,CAAC,YAAW,EACxB;EAAA,IAAAC,WAAA;AAAA,UAAA,CAAAJ,gBACAL,OAAK;IAAA,IAACU,UAAO;AAAA,YAAEN,QAAQO;;IAAW,IAAAF,WAAA;AAAA,YAAA,CAAAJ,gBAChCH,YAAU,EAAA,IAAAO,WAAA;AAAA,aAAEL,QAAQQ;QAAK,CAAA,EAAAP,gBACzBJ,YAAU;MAACY,MAAI;MAAAJ,UAAS;MAAmD,CAAA,CAAA;;IAAA,CAAA,EAAAJ,gBAE7ER,qBAAmB;IAAA,UAAA;IAElBiB,OAAK;IACLD,MAAI;IACJE,YAAY,CAAC;KAAEF,MAAM;KAAQG,MAAM;KAAY,CAAC;IAAA,IAAAP,WAAA;AAAA,YAAA,CAAAJ,gBAC/CP,gBAAc;MAAA,SAAA;MAEbe,MAAI;MACJG,MAAI;MACJC,aAAarB,IAAI;MAAkB,CAAA,EAAAsB,gBAAA,OAAA,EAAA,CAAA,CAAA;;IAAA,CAAA,CAAA;;EAAA,CAAA"}
|