@shell-shock/preset-cli 0.8.20 → 0.9.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/dist/components/banner-builtin.cjs +5 -5
- package/dist/components/banner-builtin.d.cts +1 -1
- package/dist/components/banner-builtin.d.mts +1 -1
- package/dist/components/banner-builtin.mjs +2 -2
- package/dist/components/command-entry.cjs +5 -5
- package/dist/components/command-entry.d.mts +1 -1
- package/dist/components/command-entry.mjs +4 -4
- package/dist/components/virtual-command-entry.cjs +2 -2
- package/dist/components/virtual-command-entry.d.mts +1 -1
- package/dist/components/virtual-command-entry.mjs +1 -1
- package/dist/index.cjs +7 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/types/plugin.d.cts +11 -6
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +11 -6
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +11 -8
- package/dist/plugin-banner/dist/components/banner-builtin.cjs +0 -63
- package/dist/plugin-banner/dist/components/banner-builtin.mjs +0 -62
- package/dist/plugin-banner/dist/components/banner-builtin.mjs.map +0 -1
- package/dist/plugin-banner/dist/components/banner-function-declaration.cjs +0 -162
- package/dist/plugin-banner/dist/components/banner-function-declaration.d.cts +0 -45
- package/dist/plugin-banner/dist/components/banner-function-declaration.d.cts.map +0 -1
- package/dist/plugin-banner/dist/components/banner-function-declaration.d.mts +0 -45
- package/dist/plugin-banner/dist/components/banner-function-declaration.d.mts.map +0 -1
- package/dist/plugin-banner/dist/components/banner-function-declaration.mjs +0 -160
- package/dist/plugin-banner/dist/components/banner-function-declaration.mjs.map +0 -1
- package/dist/plugin-banner/dist/index.d.cts +0 -2
- package/dist/plugin-banner/dist/index.d.mts +0 -2
- package/dist/plugin-banner/dist/types/plugin.d.cts +0 -31
- package/dist/plugin-banner/dist/types/plugin.d.cts.map +0 -1
- package/dist/plugin-banner/dist/types/plugin.d.mts +0 -31
- package/dist/plugin-banner/dist/types/plugin.d.mts.map +0 -1
- package/dist/plugin-help/dist/components/display.cjs +0 -285
- package/dist/plugin-help/dist/components/display.mjs +0 -280
- package/dist/plugin-help/dist/components/display.mjs.map +0 -1
- package/dist/plugin-help/dist/components/help-builtin.cjs +0 -86
- package/dist/plugin-help/dist/components/help-builtin.mjs +0 -85
- package/dist/plugin-help/dist/components/help-builtin.mjs.map +0 -1
- package/dist/plugin-help/dist/components/help-command.cjs +0 -96
- package/dist/plugin-help/dist/components/help-command.mjs +0 -96
- package/dist/plugin-help/dist/components/help-command.mjs.map +0 -1
- package/dist/plugin-help/dist/components/index.cjs +0 -3
- package/dist/plugin-help/dist/components/index.mjs +0 -5
- package/dist/plugin-help/dist/index.cjs +0 -106
- package/dist/plugin-help/dist/index.d.cts +0 -2
- package/dist/plugin-help/dist/index.d.mts +0 -2
- package/dist/plugin-help/dist/index.mjs +0 -103
- package/dist/plugin-help/dist/index.mjs.map +0 -1
- package/dist/plugin-help/dist/node_modules/.pnpm/@stryke_types@0.11.2/node_modules/@stryke/types/dist/base.d.cts +0 -19
- package/dist/plugin-help/dist/node_modules/.pnpm/@stryke_types@0.11.2/node_modules/@stryke/types/dist/base.d.cts.map +0 -1
- package/dist/plugin-help/dist/node_modules/.pnpm/@stryke_types@0.11.2/node_modules/@stryke/types/dist/base.d.mts +0 -19
- package/dist/plugin-help/dist/node_modules/.pnpm/@stryke_types@0.11.2/node_modules/@stryke/types/dist/base.d.mts.map +0 -1
- package/dist/plugin-help/dist/types/plugin.d.cts +0 -63
- package/dist/plugin-help/dist/types/plugin.d.cts.map +0 -1
- package/dist/plugin-help/dist/types/plugin.d.mts +0 -63
- package/dist/plugin-help/dist/types/plugin.d.mts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.cts","names":["RequiredKeys","BaseType","Keys","Pick","Required","Omit"],"sources":["../../../../../../../../../../../plugin-help/dist/node_modules/.pnpm/@stryke_types@0.11.2/node_modules/@stryke/types/dist/base.d.cts"],"x_google_ignoreList":[0],"mappings":";;;;;;;;KAOKA,YAAAA,8BAA0CC,QAAAA,IAAYG,QAAAA,CAASD,IAAAA,CAAKF,QAAAA,EAAUC,IAAAA,KAASG,IAAAA,CAAKJ,QAAAA,EAAUC,IAAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
//#region ../plugin-help/dist/node_modules/.pnpm/@stryke_types@0.11.2/node_modules/@stryke/types/dist/base.d.cts
|
|
2
|
-
//#region ../../node_modules/.pnpm/@stryke+types@0.11.2/node_modules/@stryke/types/dist/base.d.cts
|
|
3
|
-
/**
|
|
4
|
-
* Create a type that makes the given keys required. The remaining keys are kept as is.
|
|
5
|
-
*
|
|
6
|
-
* @remarks
|
|
7
|
-
* Use-case: You want to define a single model where the only thing that changes is whether or not some of the keys are required.
|
|
8
|
-
*/
|
|
9
|
-
type RequiredKeys<BaseType, Keys extends keyof BaseType> = Required<Pick<BaseType, Keys>> & Omit<BaseType, Keys>;
|
|
10
|
-
/**
|
|
11
|
-
* Create a type that makes the given keys optional. The remaining keys are kept as is.
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* Use-case: You want to define a single model where the only thing that changes is whether or not some of the keys are optional.
|
|
15
|
-
*/
|
|
16
|
-
//#endregion
|
|
17
|
-
//#endregion
|
|
18
|
-
export { RequiredKeys };
|
|
19
|
-
//# sourceMappingURL=base.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.mts","names":["RequiredKeys","BaseType","Keys","Pick","Required","Omit"],"sources":["../../../../../../../../../../../plugin-help/dist/node_modules/.pnpm/@stryke_types@0.11.2/node_modules/@stryke/types/dist/base.d.cts"],"x_google_ignoreList":[0],"mappings":";;;;;;;;KAOKA,YAAAA,8BAA0CC,QAAAA,IAAYG,QAAAA,CAASD,IAAAA,CAAKF,QAAAA,EAAUC,IAAAA,KAASG,IAAAA,CAAKJ,QAAAA,EAAUC,IAAAA"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { RequiredKeys } from "../node_modules/.pnpm/@stryke_types@0.11.2/node_modules/@stryke/types/dist/base.cjs";
|
|
2
|
-
import { CommandConfig, ResolvedConfig, UserConfig } from "@shell-shock/core";
|
|
3
|
-
import { Context as Context$1 } from "@shell-shock/core/types/context";
|
|
4
|
-
import { ConsolePluginContext, ConsolePluginOptions, ConsolePluginResolvedConfig, ConsolePluginUserConfig } from "@shell-shock/plugin-console";
|
|
5
|
-
import { ThemePluginContext, ThemePluginOptions, ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme";
|
|
6
|
-
|
|
7
|
-
//#region ../plugin-help/dist/types/plugin.d.cts
|
|
8
|
-
//#region src/types/plugin.d.ts
|
|
9
|
-
interface HelpPluginOptions {
|
|
10
|
-
/**
|
|
11
|
-
* Should the plugin automatically add built-in help entries for all commands in the application?
|
|
12
|
-
*
|
|
13
|
-
* @defaultValue true
|
|
14
|
-
*/
|
|
15
|
-
builtins?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Should the plugin add the `help` command?
|
|
18
|
-
*
|
|
19
|
-
* @remarks
|
|
20
|
-
* This can be set to a string to specify a custom command name for the `help` command, an object to override the default command configuration, or `false` to disable the help command. By default, the command name will be `"help"`.
|
|
21
|
-
*
|
|
22
|
-
* @defaultValue "help"
|
|
23
|
-
*/
|
|
24
|
-
command?: Partial<CommandConfig> | string | false;
|
|
25
|
-
/**
|
|
26
|
-
* Theme plugin options.
|
|
27
|
-
*/
|
|
28
|
-
theme?: ThemePluginOptions;
|
|
29
|
-
/**
|
|
30
|
-
* Console plugin options.
|
|
31
|
-
*/
|
|
32
|
-
console?: ConsolePluginOptions;
|
|
33
|
-
}
|
|
34
|
-
type HelpPluginUserConfig = ThemePluginUserConfig & ConsolePluginUserConfig & UserConfig & {
|
|
35
|
-
/**
|
|
36
|
-
* Resolved help configuration for the plugin.
|
|
37
|
-
*/
|
|
38
|
-
help: Omit<HelpPluginOptions, "theme" | "console" | "command"> & {
|
|
39
|
-
/**
|
|
40
|
-
* The name of the help command to add to the application, or `false` to disable adding a help command.
|
|
41
|
-
*
|
|
42
|
-
* @defaultValue "help"
|
|
43
|
-
*/
|
|
44
|
-
command: Partial<CommandConfig> | string | false;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
type HelpPluginResolvedConfig = ThemePluginResolvedConfig & ConsolePluginResolvedConfig & ResolvedConfig & {
|
|
48
|
-
/**
|
|
49
|
-
* Resolved help configuration for the plugin.
|
|
50
|
-
*/
|
|
51
|
-
help: Required<Omit<HelpPluginOptions, "theme" | "console" | "command">> & {
|
|
52
|
-
/**
|
|
53
|
-
* The properties of the help command to add to the application, or `false` to disable adding a help command.
|
|
54
|
-
*
|
|
55
|
-
* @defaultValue \{ name: "help" \}
|
|
56
|
-
*/
|
|
57
|
-
command: RequiredKeys<Partial<CommandConfig>, "name"> | false;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
type HelpPluginContext<TResolvedConfig extends HelpPluginResolvedConfig = HelpPluginResolvedConfig> = ThemePluginContext<TResolvedConfig> & ConsolePluginContext<TResolvedConfig> & Context$1<TResolvedConfig>; //#endregion
|
|
61
|
-
//#endregion
|
|
62
|
-
export { HelpPluginContext, HelpPluginOptions, HelpPluginResolvedConfig, HelpPluginUserConfig };
|
|
63
|
-
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":["RequiredKeys","CommandConfig","ResolvedConfig","UserConfig","Context","ConsolePluginContext","ConsolePluginOptions","ConsolePluginResolvedConfig","ConsolePluginUserConfig","ThemePluginContext","ThemePluginOptions","ThemePluginResolvedConfig","ThemePluginUserConfig","HelpPluginOptions","Partial","builtins","command","theme","console","HelpPluginUserConfig","Omit","help","HelpPluginResolvedConfig","Required","HelpPluginContext","TResolvedConfig"],"sources":["../../../../../plugin-help/dist/types/plugin.d.cts"],"mappings":";;;;;;;;UAOUa,iBAAAA;EAAiB;;;;;EAMzBE,QAAAA;EAiB8B;;;;;;;;EAR9BC,OAAAA,GAAUF,OAAAA,CAAQb,aAAAA;EAQRK;;;EAJVW,KAAAA,GAAQP,kBAAAA;EAMe;;;EAFvBQ,OAAAA,GAAUZ,oBAAAA;AAAAA;AAAAA,KAEPa,oBAAAA,GAAuBP,qBAAAA,GAAwBJ,uBAAAA,GAA0BL,UAAAA;EAItEiB;;;EAANC,IAAAA,EAAMD,IAAAA,CAAKP,iBAAAA;IAMO;;;;;IAAhBG,OAAAA,EAASF,OAAAA,CAAQb,aAAAA;EAAAA;AAAAA;AAAAA,KAGhBqB,wBAAAA,GAA2BX,yBAAAA,GAA4BJ,2BAAAA,GAA8BL,cAAAA;EAHrED;;;EAOnBoB,IAAAA,EAAME,QAAAA,CAASH,IAAAA,CAAKP,iBAAAA;IAJO;;;;;IAUzBG,OAAAA,EAAShB,YAAAA,CAAac,OAAAA,CAAQb,aAAAA;EAAAA;AAAAA;AAAAA,KAG7BuB,iBAAAA,yBAA0CF,wBAAAA,GAA2BA,wBAAAA,IAA4Bb,kBAAAA,CAAmBgB,eAAAA,IAAmBpB,oBAAAA,CAAqBoB,eAAAA,IAAmBrB,SAAAA,CAAQqB,eAAAA"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { RequiredKeys } from "../node_modules/.pnpm/@stryke_types@0.11.2/node_modules/@stryke/types/dist/base.mjs";
|
|
2
|
-
import { ConsolePluginContext, ConsolePluginOptions, ConsolePluginResolvedConfig, ConsolePluginUserConfig } from "@shell-shock/plugin-console";
|
|
3
|
-
import { CommandConfig, ResolvedConfig, UserConfig } from "@shell-shock/core";
|
|
4
|
-
import { ThemePluginContext, ThemePluginOptions, ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme";
|
|
5
|
-
import { Context as Context$1 } from "@shell-shock/core/types/context";
|
|
6
|
-
|
|
7
|
-
//#region ../plugin-help/dist/types/plugin.d.cts
|
|
8
|
-
//#region src/types/plugin.d.ts
|
|
9
|
-
interface HelpPluginOptions {
|
|
10
|
-
/**
|
|
11
|
-
* Should the plugin automatically add built-in help entries for all commands in the application?
|
|
12
|
-
*
|
|
13
|
-
* @defaultValue true
|
|
14
|
-
*/
|
|
15
|
-
builtins?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Should the plugin add the `help` command?
|
|
18
|
-
*
|
|
19
|
-
* @remarks
|
|
20
|
-
* This can be set to a string to specify a custom command name for the `help` command, an object to override the default command configuration, or `false` to disable the help command. By default, the command name will be `"help"`.
|
|
21
|
-
*
|
|
22
|
-
* @defaultValue "help"
|
|
23
|
-
*/
|
|
24
|
-
command?: Partial<CommandConfig> | string | false;
|
|
25
|
-
/**
|
|
26
|
-
* Theme plugin options.
|
|
27
|
-
*/
|
|
28
|
-
theme?: ThemePluginOptions;
|
|
29
|
-
/**
|
|
30
|
-
* Console plugin options.
|
|
31
|
-
*/
|
|
32
|
-
console?: ConsolePluginOptions;
|
|
33
|
-
}
|
|
34
|
-
type HelpPluginUserConfig = ThemePluginUserConfig & ConsolePluginUserConfig & UserConfig & {
|
|
35
|
-
/**
|
|
36
|
-
* Resolved help configuration for the plugin.
|
|
37
|
-
*/
|
|
38
|
-
help: Omit<HelpPluginOptions, "theme" | "console" | "command"> & {
|
|
39
|
-
/**
|
|
40
|
-
* The name of the help command to add to the application, or `false` to disable adding a help command.
|
|
41
|
-
*
|
|
42
|
-
* @defaultValue "help"
|
|
43
|
-
*/
|
|
44
|
-
command: Partial<CommandConfig> | string | false;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
type HelpPluginResolvedConfig = ThemePluginResolvedConfig & ConsolePluginResolvedConfig & ResolvedConfig & {
|
|
48
|
-
/**
|
|
49
|
-
* Resolved help configuration for the plugin.
|
|
50
|
-
*/
|
|
51
|
-
help: Required<Omit<HelpPluginOptions, "theme" | "console" | "command">> & {
|
|
52
|
-
/**
|
|
53
|
-
* The properties of the help command to add to the application, or `false` to disable adding a help command.
|
|
54
|
-
*
|
|
55
|
-
* @defaultValue \{ name: "help" \}
|
|
56
|
-
*/
|
|
57
|
-
command: RequiredKeys<Partial<CommandConfig>, "name"> | false;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
type HelpPluginContext<TResolvedConfig extends HelpPluginResolvedConfig = HelpPluginResolvedConfig> = ThemePluginContext<TResolvedConfig> & ConsolePluginContext<TResolvedConfig> & Context$1<TResolvedConfig>; //#endregion
|
|
61
|
-
//#endregion
|
|
62
|
-
export { HelpPluginContext, HelpPluginOptions, HelpPluginResolvedConfig, HelpPluginUserConfig };
|
|
63
|
-
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":["RequiredKeys","CommandConfig","ResolvedConfig","UserConfig","Context","ConsolePluginContext","ConsolePluginOptions","ConsolePluginResolvedConfig","ConsolePluginUserConfig","ThemePluginContext","ThemePluginOptions","ThemePluginResolvedConfig","ThemePluginUserConfig","HelpPluginOptions","Partial","builtins","command","theme","console","HelpPluginUserConfig","Omit","help","HelpPluginResolvedConfig","Required","HelpPluginContext","TResolvedConfig"],"sources":["../../../../../plugin-help/dist/types/plugin.d.cts"],"mappings":";;;;;;;;UAOUa,iBAAAA;EAAiB;;;;;EAMzBE,QAAAA;EAiB8B;;;;;;;;EAR9BC,OAAAA,GAAUF,OAAAA,CAAQb,aAAAA;EAQRK;;;EAJVW,KAAAA,GAAQP,kBAAAA;EAMe;;;EAFvBQ,OAAAA,GAAUZ,oBAAAA;AAAAA;AAAAA,KAEPa,oBAAAA,GAAuBP,qBAAAA,GAAwBJ,uBAAAA,GAA0BL,UAAAA;EAItEiB;;;EAANC,IAAAA,EAAMD,IAAAA,CAAKP,iBAAAA;IAMO;;;;;IAAhBG,OAAAA,EAASF,OAAAA,CAAQb,aAAAA;EAAAA;AAAAA;AAAAA,KAGhBqB,wBAAAA,GAA2BX,yBAAAA,GAA4BJ,2BAAAA,GAA8BL,cAAAA;EAHrED;;;EAOnBoB,IAAAA,EAAME,QAAAA,CAASH,IAAAA,CAAKP,iBAAAA;IAJO;;;;;IAUzBG,OAAAA,EAAShB,YAAAA,CAAac,OAAAA,CAAQb,aAAAA;EAAAA;AAAAA;AAAAA,KAG7BuB,iBAAAA,yBAA0CF,wBAAAA,GAA2BA,wBAAAA,IAA4Bb,kBAAAA,CAAmBgB,eAAAA,IAAmBpB,oBAAAA,CAAqBoB,eAAAA,IAAmBrB,SAAAA,CAAQqB,eAAAA"}
|