@shell-shock/preset-script 0.3.0 → 0.3.1
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/args-parser-logic.d.cts +7 -7
- package/dist/components/args-parser-logic.d.mts +7 -7
- package/dist/components/args-parser-logic.d.mts.map +1 -1
- package/dist/components/command-entry.d.cts +4 -4
- package/dist/components/command-entry.d.mts +4 -4
- package/dist/components/command-entry.d.mts.map +1 -1
- package/dist/components/console-builtin.cjs +2 -2
- package/dist/components/console-builtin.cjs.map +1 -1
- package/dist/components/console-builtin.mjs +2 -2
- package/dist/components/console-builtin.mjs.map +1 -1
- package/dist/components/help.d.mts +5 -5
- package/dist/components/utils-builtin.d.mts +7 -7
- package/dist/components/virtual-command-entry.d.mts +3 -3
- package/dist/components/virtual-command-entry.d.mts.map +1 -1
- package/package.json +9 -9
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core11 from "@alloy-js/core";
|
|
2
2
|
import { CommandOption, CommandParam, CommandTree, CommandTreePath } from "@shell-shock/core/types/command";
|
|
3
3
|
|
|
4
4
|
//#region src/components/args-parser-logic.d.ts
|
|
5
5
|
declare function VariablePathsParserLogic(props: {
|
|
6
6
|
path: CommandTreePath;
|
|
7
|
-
}):
|
|
7
|
+
}): _alloy_js_core11.Children;
|
|
8
8
|
/**
|
|
9
9
|
* The command parameter parser logic.
|
|
10
10
|
*/
|
|
11
11
|
declare function ParamsParserLogic(props: {
|
|
12
12
|
params: CommandParam[];
|
|
13
|
-
}):
|
|
13
|
+
}): _alloy_js_core11.Children;
|
|
14
14
|
/**
|
|
15
15
|
* The command option interface property.
|
|
16
16
|
*/
|
|
@@ -20,7 +20,7 @@ declare function OptionsMember({
|
|
|
20
20
|
}: {
|
|
21
21
|
name: string;
|
|
22
22
|
option: CommandOption;
|
|
23
|
-
}):
|
|
23
|
+
}): _alloy_js_core11.Children;
|
|
24
24
|
/**
|
|
25
25
|
* The command option property parser logic.
|
|
26
26
|
*/
|
|
@@ -30,16 +30,16 @@ declare function OptionsMemberParserLogic({
|
|
|
30
30
|
}: {
|
|
31
31
|
name: string;
|
|
32
32
|
option: CommandOption;
|
|
33
|
-
}):
|
|
33
|
+
}): _alloy_js_core11.Children;
|
|
34
34
|
declare function OptionsInterfaceDeclaration(props: {
|
|
35
35
|
command: CommandTree;
|
|
36
|
-
}):
|
|
36
|
+
}): _alloy_js_core11.Children;
|
|
37
37
|
/**
|
|
38
38
|
* The command options parser logic.
|
|
39
39
|
*/
|
|
40
40
|
declare function OptionsParserLogic(props: {
|
|
41
41
|
command: CommandTree;
|
|
42
|
-
}):
|
|
42
|
+
}): _alloy_js_core11.Children;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserLogic, OptionsParserLogic, ParamsParserLogic, VariablePathsParserLogic };
|
|
45
45
|
//# sourceMappingURL=args-parser-logic.d.cts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core9 from "@alloy-js/core";
|
|
2
2
|
import { CommandOption, CommandParam, CommandTree, CommandTreePath } from "@shell-shock/core/types/command";
|
|
3
3
|
|
|
4
4
|
//#region src/components/args-parser-logic.d.ts
|
|
5
5
|
declare function VariablePathsParserLogic(props: {
|
|
6
6
|
path: CommandTreePath;
|
|
7
|
-
}):
|
|
7
|
+
}): _alloy_js_core9.Children;
|
|
8
8
|
/**
|
|
9
9
|
* The command parameter parser logic.
|
|
10
10
|
*/
|
|
11
11
|
declare function ParamsParserLogic(props: {
|
|
12
12
|
params: CommandParam[];
|
|
13
|
-
}):
|
|
13
|
+
}): _alloy_js_core9.Children;
|
|
14
14
|
/**
|
|
15
15
|
* The command option interface property.
|
|
16
16
|
*/
|
|
@@ -20,7 +20,7 @@ declare function OptionsMember({
|
|
|
20
20
|
}: {
|
|
21
21
|
name: string;
|
|
22
22
|
option: CommandOption;
|
|
23
|
-
}):
|
|
23
|
+
}): _alloy_js_core9.Children;
|
|
24
24
|
/**
|
|
25
25
|
* The command option property parser logic.
|
|
26
26
|
*/
|
|
@@ -30,16 +30,16 @@ declare function OptionsMemberParserLogic({
|
|
|
30
30
|
}: {
|
|
31
31
|
name: string;
|
|
32
32
|
option: CommandOption;
|
|
33
|
-
}):
|
|
33
|
+
}): _alloy_js_core9.Children;
|
|
34
34
|
declare function OptionsInterfaceDeclaration(props: {
|
|
35
35
|
command: CommandTree;
|
|
36
|
-
}):
|
|
36
|
+
}): _alloy_js_core9.Children;
|
|
37
37
|
/**
|
|
38
38
|
* The command options parser logic.
|
|
39
39
|
*/
|
|
40
40
|
declare function OptionsParserLogic(props: {
|
|
41
41
|
command: CommandTree;
|
|
42
|
-
}):
|
|
42
|
+
}): _alloy_js_core9.Children;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserLogic, OptionsParserLogic, ParamsParserLogic, VariablePathsParserLogic };
|
|
45
45
|
//# sourceMappingURL=args-parser-logic.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args-parser-logic.d.mts","names":[],"sources":["../../src/components/args-parser-logic.tsx"],"sourcesContent":[],"mappings":";;;;iBAiDgB,wBAAA;QAAwC;IAAe,
|
|
1
|
+
{"version":3,"file":"args-parser-logic.d.mts","names":[],"sources":["../../src/components/args-parser-logic.tsx"],"sourcesContent":[],"mappings":";;;;iBAiDgB,wBAAA;QAAwC;IAAe,eAAA,CAAE;AAAzE;AAsDA;AA4EA;AACE,iBA7Ec,iBAAA,CA6Ed,KAAA,EAAA;EACA,MAAA,EA9EiD,YA8EjD,EAAA;CAGQ,CAAA,EAjFqD,eAAA,CAAI,QAiFzD;;;AAoEV;AACE,iBA1Ec,aAAA,CA0Ed;EAAA,IAAA;EAAA;CAAA,EAAA;EACA,IAAA,EAAA,MAAA;EAGQ,MAAA,EAzEA,aAyEA;CAAa,CAAA,EAzEA,eAAA,CACtB,QAyEA;;AAuND;AAeA;iBA5OgB,wBAAA;;;;;UAKN;IAAa,eAAA,CACtB;iBAuNe,2BAAA;WAA8C;IAAW,eAAA,CAAE;;;;iBAe3D,kBAAA;WAAqC;IAAW,eAAA,CAAE"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core17 from "@alloy-js/core";
|
|
2
2
|
import { CommandTree } from "@shell-shock/core/types/command";
|
|
3
3
|
import { EntryFileProps } from "@powerlines/plugin-alloy/typescript/components/entry-file";
|
|
4
4
|
|
|
5
5
|
//#region src/components/command-entry.d.ts
|
|
6
6
|
declare function CommandInvocation(props: {
|
|
7
7
|
command: CommandTree;
|
|
8
|
-
}):
|
|
8
|
+
}): _alloy_js_core17.Children;
|
|
9
9
|
/**
|
|
10
10
|
* A component that generates the `handler` function declaration for a command.
|
|
11
11
|
*/
|
|
12
12
|
declare function CommandHandlerDeclaration(props: {
|
|
13
13
|
command: CommandTree;
|
|
14
|
-
}):
|
|
14
|
+
}): _alloy_js_core17.Children;
|
|
15
15
|
interface CommandEntryProps extends Omit<EntryFileProps, "path" | "typeDefinition"> {
|
|
16
16
|
command: CommandTree;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* The command entry point for the Shell Shock project.
|
|
20
20
|
*/
|
|
21
|
-
declare function CommandEntry(props: CommandEntryProps):
|
|
21
|
+
declare function CommandEntry(props: CommandEntryProps): _alloy_js_core17.Children;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { CommandEntry, CommandEntryProps, CommandHandlerDeclaration, CommandInvocation };
|
|
24
24
|
//# sourceMappingURL=command-entry.d.cts.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core17 from "@alloy-js/core";
|
|
2
2
|
import { EntryFileProps } from "@powerlines/plugin-alloy/typescript/components/entry-file";
|
|
3
3
|
import { CommandTree } from "@shell-shock/core/types/command";
|
|
4
4
|
|
|
5
5
|
//#region src/components/command-entry.d.ts
|
|
6
6
|
declare function CommandInvocation(props: {
|
|
7
7
|
command: CommandTree;
|
|
8
|
-
}):
|
|
8
|
+
}): _alloy_js_core17.Children;
|
|
9
9
|
/**
|
|
10
10
|
* A component that generates the `handler` function declaration for a command.
|
|
11
11
|
*/
|
|
12
12
|
declare function CommandHandlerDeclaration(props: {
|
|
13
13
|
command: CommandTree;
|
|
14
|
-
}):
|
|
14
|
+
}): _alloy_js_core17.Children;
|
|
15
15
|
interface CommandEntryProps extends Omit<EntryFileProps, "path" | "typeDefinition"> {
|
|
16
16
|
command: CommandTree;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* The command entry point for the Shell Shock project.
|
|
20
20
|
*/
|
|
21
|
-
declare function CommandEntry(props: CommandEntryProps):
|
|
21
|
+
declare function CommandEntry(props: CommandEntryProps): _alloy_js_core17.Children;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { CommandEntry, CommandEntryProps, CommandHandlerDeclaration, CommandInvocation };
|
|
24
24
|
//# sourceMappingURL=command-entry.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-entry.d.mts","names":[],"sources":["../../src/components/command-entry.tsx"],"sourcesContent":[],"mappings":";;;;;iBAyDgB,iBAAA;WAAoC;IAAW,
|
|
1
|
+
{"version":3,"file":"command-entry.d.mts","names":[],"sources":["../../src/components/command-entry.tsx"],"sourcesContent":[],"mappings":";;;;;iBAyDgB,iBAAA;WAAoC;IAAW,gBAAA,CAAE;AAAjE;AA0BA;AA4DA;AACE,iBA7Dc,yBAAA,CA6Dd,KAAA,EAAA;EAGS,OAAA,EAhEiD,WAgEjD;CAJgC,CAAA,EA5D4B,gBAAA,CAAE,QA4D9B;AAAI,UAA9B,iBAAA,SAA0B,IAAI,CAC7C,cAD6C,EAAA,MAAA,GAAA,gBAAA,CAAA,CAAA;EAU/B,OAAA,EANL,WAMiB;;;;;iBAAZ,YAAA,QAAoB,oBAAiB,gBAAA,CAAA"}
|
|
@@ -1352,7 +1352,7 @@ function BannerFunctionDeclaration(props) {
|
|
|
1352
1352
|
return;
|
|
1353
1353
|
}
|
|
1354
1354
|
|
|
1355
|
-
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.
|
|
1355
|
+
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.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} });
|
|
1356
1356
|
|
|
1357
1357
|
splitText(
|
|
1358
1358
|
colors.text.banner.title.${variant}("${title.value}"),
|
|
@@ -1372,7 +1372,7 @@ function BannerFunctionDeclaration(props) {
|
|
|
1372
1372
|
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} });
|
|
1373
1373
|
});
|
|
1374
1374
|
|
|
1375
|
-
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 - ${
|
|
1375
|
+
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.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} });
|
|
1376
1376
|
`;
|
|
1377
1377
|
}
|
|
1378
1378
|
})];
|