@shell-shock/core 0.17.21 → 0.17.23
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 +16 -7
- package/dist/api.cjs +4 -5
- package/dist/api.d.cts +1 -1
- package/dist/api.d.mts +1 -1
- package/dist/api.mjs +2 -2
- package/dist/command-B6KYexlV.d.mts +308 -0
- package/dist/command-B6KYexlV.d.mts.map +1 -0
- package/dist/command-CtfR7hKM.d.cts +308 -0
- package/dist/command-CtfR7hKM.d.cts.map +1 -0
- package/dist/components/command-validation-logic.cjs +153 -216
- package/dist/components/command-validation-logic.d.cts +2 -1
- package/dist/components/command-validation-logic.d.cts.map +1 -1
- package/dist/components/command-validation-logic.d.mts +2 -1
- package/dist/components/command-validation-logic.mjs +153 -214
- package/dist/components/docs.cjs +6 -364
- package/dist/components/docs.d.cts +2 -3
- package/dist/components/docs.d.cts.map +1 -1
- package/dist/components/docs.d.mts +2 -3
- package/dist/components/docs.mjs +2 -356
- package/dist/components/exec-builtin.cjs +63 -100
- package/dist/components/exec-builtin.d.cts +1 -2
- package/dist/components/exec-builtin.d.cts.map +1 -1
- package/dist/components/exec-builtin.d.mts +1 -2
- package/dist/components/exec-builtin.mjs +7 -41
- package/dist/components/helpers.cjs +2 -52
- package/dist/components/helpers.d.cts +2 -1
- package/dist/components/helpers.d.cts.map +1 -1
- package/dist/components/helpers.d.mts +2 -1
- package/dist/components/helpers.mjs +2 -50
- package/dist/components/index.cjs +7 -23
- package/dist/components/index.mjs +9 -9
- package/dist/components/options-parser-logic.cjs +198 -420
- package/dist/components/options-parser-logic.d.cts +2 -5
- package/dist/components/options-parser-logic.d.cts.map +1 -1
- package/dist/components/options-parser-logic.d.mts +2 -5
- package/dist/components/options-parser-logic.mjs +192 -407
- package/dist/components/state-builtin.cjs +106 -164
- package/dist/components/state-builtin.d.cts +1 -2
- package/dist/components/state-builtin.d.cts.map +1 -1
- package/dist/components/state-builtin.d.mts +1 -2
- package/dist/components/state-builtin.mjs +12 -68
- package/dist/components/usage.cjs +4 -48
- package/dist/components/usage.d.cts +1 -2
- package/dist/components/usage.d.cts.map +1 -1
- package/dist/components/usage.d.mts +1 -2
- package/dist/components/usage.mjs +4 -46
- package/dist/components/utils-builtin.cjs +77 -144
- package/dist/components/utils-builtin.d.cts +1 -2
- package/dist/components/utils-builtin.d.cts.map +1 -1
- package/dist/components/utils-builtin.d.mts +1 -2
- package/dist/components/utils-builtin.mjs +9 -74
- package/dist/config-BIF9mEz0.d.cts +157 -0
- package/dist/config-BIF9mEz0.d.cts.map +1 -0
- package/dist/config-CnNYdfsL.d.mts +157 -0
- package/dist/config-CnNYdfsL.d.mts.map +1 -0
- package/dist/config.cjs +24 -58
- package/dist/config.d.cts +1 -2
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts +1 -2
- package/dist/config.mjs +23 -55
- package/dist/{plugin-utils/context-helpers.mjs → context-helpers-D3EJxwbq.mjs} +5 -83
- package/dist/context-helpers-D3EJxwbq.mjs.map +1 -0
- package/dist/{plugin-utils/context-helpers.cjs → context-helpers-_wUuFRB8.cjs} +63 -92
- package/dist/contexts/command.cjs +3 -9
- package/dist/contexts/command.d.cts +1 -2
- package/dist/contexts/command.d.cts.map +1 -1
- package/dist/contexts/command.d.mts +1 -2
- package/dist/contexts/command.mjs +2 -7
- package/dist/contexts/index.cjs +19 -1
- package/dist/contexts/index.d.cts +2 -1
- package/dist/contexts/index.d.mts +2 -1
- package/dist/contexts/index.mjs +2 -1
- package/dist/contexts/options.cjs +7 -30
- package/dist/contexts/options.d.cts +1 -2
- package/dist/contexts/options.d.cts.map +1 -1
- package/dist/contexts/options.d.mts +1 -2
- package/dist/contexts/options.mjs +7 -27
- package/dist/contexts/power-plant.cjs +19 -0
- package/dist/contexts/power-plant.d.cts +2 -0
- package/dist/contexts/power-plant.d.mts +2 -0
- package/dist/contexts/power-plant.mjs +5 -0
- package/dist/docs-C6ZvsVMu.cjs +278 -0
- package/dist/docs-CGQ2HtEY.mjs +249 -0
- package/dist/docs-CGQ2HtEY.mjs.map +1 -0
- package/dist/engine.cjs +5 -39
- package/dist/engine.d.cts +1 -2
- package/dist/engine.d.cts.map +1 -1
- package/dist/engine.d.mts +1 -2
- package/dist/engine.mjs +4 -37
- package/dist/generator.cjs +68 -0
- package/dist/generator.d.cts +15 -0
- package/dist/generator.d.cts.map +1 -0
- package/dist/generator.d.mts +15 -0
- package/dist/generator.d.mts.map +1 -0
- package/dist/generator.mjs +66 -0
- package/dist/generator.mjs.map +1 -0
- package/dist/{helpers/get-framework.cjs → get-framework-CxZc2krd.cjs} +7 -8
- package/dist/{helpers/get-framework.mjs → get-framework-Dlqz2hVZ.mjs} +3 -8
- package/dist/get-framework-Dlqz2hVZ.mjs.map +1 -0
- package/dist/helpers/power-plant.cjs +102 -0
- package/dist/helpers/power-plant.d.cts +61 -0
- package/dist/helpers/power-plant.d.cts.map +1 -0
- package/dist/helpers/power-plant.d.mts +61 -0
- package/dist/helpers/power-plant.d.mts.map +1 -0
- package/dist/helpers/power-plant.mjs +99 -0
- package/dist/helpers/power-plant.mjs.map +1 -0
- package/dist/index-D4klH_pj.d.mts +2 -0
- package/dist/index-DYOBadKY.d.cts +2 -0
- package/dist/index.cjs +1 -37
- package/dist/index.d.cts +4 -6
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -6
- package/dist/index.mjs +0 -35
- package/dist/package-B7Vu265G.mjs +6 -0
- package/dist/package-B7Vu265G.mjs.map +1 -0
- package/dist/{package.cjs → package-BLC4qc8t.cjs} +2 -4
- package/dist/plugin-B-hM2twc.mjs +1458 -0
- package/dist/plugin-B-hM2twc.mjs.map +1 -0
- package/dist/plugin-Bhfq0DMC.cjs +1490 -0
- package/dist/plugin-utils/index.cjs +359 -26
- package/dist/plugin-utils/index.d.cts +273 -9
- package/dist/plugin-utils/index.d.cts.map +1 -0
- package/dist/plugin-utils/index.d.mts +273 -9
- package/dist/plugin-utils/index.d.mts.map +1 -0
- package/dist/plugin-utils/index.mjs +346 -10
- package/dist/plugin-utils/index.mjs.map +1 -0
- package/dist/plugin.cjs +3 -496
- package/dist/plugin.d.cts +1 -3
- package/dist/plugin.d.cts.map +1 -1
- package/dist/plugin.d.mts +1 -3
- package/dist/plugin.mjs +2 -491
- package/dist/power-plant-LgxcvlMN.d.cts +4 -0
- package/dist/power-plant-LgxcvlMN.d.mts +4 -0
- package/dist/reflect-CSiffeL9.cjs +27 -0
- package/dist/reflect-DXKSFgvS.mjs +23 -0
- package/dist/reflect-DXKSFgvS.mjs.map +1 -0
- package/dist/schemas/env.cjs +91 -0
- package/dist/schemas/env.d.cts +145 -0
- package/dist/schemas/env.d.cts.map +1 -0
- package/dist/schemas/env.d.mts +145 -0
- package/dist/{types → schemas}/env.d.mts.map +1 -1
- package/dist/schemas/env.mjs +91 -0
- package/dist/schemas/index.cjs +4 -0
- package/dist/schemas/index.d.cts +2 -0
- package/dist/schemas/index.d.mts +2 -0
- package/dist/schemas/index.mjs +3 -0
- package/dist/types/command.cjs +0 -402
- package/dist/types/command.d.cts +2 -309
- package/dist/types/command.d.mts +2 -309
- package/dist/types/command.mjs +1 -368
- package/dist/types/config.cjs +0 -175
- package/dist/types/config.d.cts +2 -126
- package/dist/types/config.d.mts +2 -126
- package/dist/types/config.mjs +1 -164
- package/dist/types/context.cjs +0 -45
- package/dist/types/context.d.cts +2 -31
- package/dist/types/context.d.mts +2 -31
- package/dist/types/context.mjs +1 -41
- package/dist/types/index.cjs +3 -53
- package/dist/types/index.d.cts +4 -5
- package/dist/types/index.d.mts +4 -5
- package/dist/types/index.mjs +4 -5
- package/package.json +106 -42
- package/dist/_virtual/_rolldown/runtime.cjs +0 -29
- package/dist/api.cjs.map +0 -1
- package/dist/components/command-validation-logic.cjs.map +0 -1
- package/dist/components/docs.cjs.map +0 -1
- package/dist/components/docs.mjs.map +0 -1
- package/dist/components/exec-builtin.cjs.map +0 -1
- package/dist/components/helpers.cjs.map +0 -1
- package/dist/components/options-parser-logic.cjs.map +0 -1
- package/dist/components/state-builtin.cjs.map +0 -1
- package/dist/components/usage.cjs.map +0 -1
- package/dist/components/utils-builtin.cjs.map +0 -1
- package/dist/config.cjs.map +0 -1
- package/dist/contexts/command.cjs.map +0 -1
- package/dist/contexts/options.cjs.map +0 -1
- package/dist/engine.cjs.map +0 -1
- package/dist/helpers/automd.cjs +0 -193
- package/dist/helpers/automd.cjs.map +0 -1
- package/dist/helpers/automd.mjs +0 -190
- package/dist/helpers/automd.mjs.map +0 -1
- package/dist/helpers/docs-helpers.cjs +0 -24
- package/dist/helpers/docs-helpers.cjs.map +0 -1
- package/dist/helpers/docs-helpers.mjs +0 -24
- package/dist/helpers/docs-helpers.mjs.map +0 -1
- package/dist/helpers/get-framework.cjs.map +0 -1
- package/dist/helpers/get-framework.mjs.map +0 -1
- package/dist/helpers/paths.cjs +0 -137
- package/dist/helpers/paths.cjs.map +0 -1
- package/dist/helpers/paths.mjs +0 -134
- package/dist/helpers/paths.mjs.map +0 -1
- package/dist/helpers/persistence.cjs +0 -114
- package/dist/helpers/persistence.cjs.map +0 -1
- package/dist/helpers/persistence.mjs +0 -113
- package/dist/helpers/persistence.mjs.map +0 -1
- package/dist/helpers/update-package-json.cjs +0 -65
- package/dist/helpers/update-package-json.cjs.map +0 -1
- package/dist/helpers/update-package-json.mjs +0 -64
- package/dist/helpers/update-package-json.mjs.map +0 -1
- package/dist/helpers/utilities.cjs +0 -95
- package/dist/helpers/utilities.cjs.map +0 -1
- package/dist/helpers/utilities.mjs +0 -94
- package/dist/helpers/utilities.mjs.map +0 -1
- package/dist/helpers/validations.cjs +0 -71
- package/dist/helpers/validations.cjs.map +0 -1
- package/dist/helpers/validations.mjs +0 -70
- package/dist/helpers/validations.mjs.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/package.cjs.map +0 -1
- package/dist/package.mjs +0 -6
- package/dist/package.mjs.map +0 -1
- package/dist/plugin-utils/compute-bin.cjs +0 -49
- package/dist/plugin-utils/compute-bin.cjs.map +0 -1
- package/dist/plugin-utils/compute-bin.d.cts +0 -13
- package/dist/plugin-utils/compute-bin.d.cts.map +0 -1
- package/dist/plugin-utils/compute-bin.d.mts +0 -13
- package/dist/plugin-utils/compute-bin.d.mts.map +0 -1
- package/dist/plugin-utils/compute-bin.mjs +0 -49
- package/dist/plugin-utils/compute-bin.mjs.map +0 -1
- package/dist/plugin-utils/context-helpers.cjs.map +0 -1
- package/dist/plugin-utils/context-helpers.d.cts +0 -106
- package/dist/plugin-utils/context-helpers.d.cts.map +0 -1
- package/dist/plugin-utils/context-helpers.d.mts +0 -106
- package/dist/plugin-utils/context-helpers.d.mts.map +0 -1
- package/dist/plugin-utils/context-helpers.mjs.map +0 -1
- package/dist/plugin-utils/deepkit.cjs +0 -70
- package/dist/plugin-utils/deepkit.cjs.map +0 -1
- package/dist/plugin-utils/deepkit.d.cts +0 -23
- package/dist/plugin-utils/deepkit.d.cts.map +0 -1
- package/dist/plugin-utils/deepkit.d.mts +0 -23
- package/dist/plugin-utils/deepkit.d.mts.map +0 -1
- package/dist/plugin-utils/deepkit.mjs +0 -69
- package/dist/plugin-utils/deepkit.mjs.map +0 -1
- package/dist/plugin-utils/description-helpers.cjs +0 -112
- package/dist/plugin-utils/description-helpers.cjs.map +0 -1
- package/dist/plugin-utils/description-helpers.d.cts +0 -44
- package/dist/plugin-utils/description-helpers.d.cts.map +0 -1
- package/dist/plugin-utils/description-helpers.d.mts +0 -44
- package/dist/plugin-utils/description-helpers.d.mts.map +0 -1
- package/dist/plugin-utils/description-helpers.mjs +0 -108
- package/dist/plugin-utils/description-helpers.mjs.map +0 -1
- package/dist/plugin-utils/get-command-tree.cjs +0 -118
- package/dist/plugin-utils/get-command-tree.cjs.map +0 -1
- package/dist/plugin-utils/get-command-tree.d.cts +0 -36
- package/dist/plugin-utils/get-command-tree.d.cts.map +0 -1
- package/dist/plugin-utils/get-command-tree.d.mts +0 -36
- package/dist/plugin-utils/get-command-tree.d.mts.map +0 -1
- package/dist/plugin-utils/get-command-tree.mjs +0 -115
- package/dist/plugin-utils/get-command-tree.mjs.map +0 -1
- package/dist/plugin-utils/reflect.cjs +0 -54
- package/dist/plugin-utils/reflect.cjs.map +0 -1
- package/dist/plugin-utils/reflect.d.cts +0 -14
- package/dist/plugin-utils/reflect.d.cts.map +0 -1
- package/dist/plugin-utils/reflect.d.mts +0 -14
- package/dist/plugin-utils/reflect.d.mts.map +0 -1
- package/dist/plugin-utils/reflect.mjs +0 -53
- package/dist/plugin-utils/reflect.mjs.map +0 -1
- package/dist/plugin-utils/traverse-command-tree.cjs +0 -65
- package/dist/plugin-utils/traverse-command-tree.cjs.map +0 -1
- package/dist/plugin-utils/traverse-command-tree.d.cts +0 -22
- package/dist/plugin-utils/traverse-command-tree.d.cts.map +0 -1
- package/dist/plugin-utils/traverse-command-tree.d.mts +0 -22
- package/dist/plugin-utils/traverse-command-tree.d.mts.map +0 -1
- package/dist/plugin-utils/traverse-command-tree.mjs +0 -63
- package/dist/plugin-utils/traverse-command-tree.mjs.map +0 -1
- package/dist/plugin-utils/type-checks.cjs +0 -222
- package/dist/plugin-utils/type-checks.cjs.map +0 -1
- package/dist/plugin-utils/type-checks.d.cts +0 -41
- package/dist/plugin-utils/type-checks.d.cts.map +0 -1
- package/dist/plugin-utils/type-checks.d.mts +0 -41
- package/dist/plugin-utils/type-checks.d.mts.map +0 -1
- package/dist/plugin-utils/type-checks.mjs +0 -218
- package/dist/plugin-utils/type-checks.mjs.map +0 -1
- package/dist/plugin.cjs.map +0 -1
- package/dist/plugin.mjs.map +0 -1
- package/dist/resolver/deepkit.cjs +0 -110
- package/dist/resolver/deepkit.cjs.map +0 -1
- package/dist/resolver/deepkit.mjs +0 -109
- package/dist/resolver/deepkit.mjs.map +0 -1
- package/dist/resolver/helpers.cjs +0 -184
- package/dist/resolver/helpers.cjs.map +0 -1
- package/dist/resolver/helpers.mjs +0 -180
- package/dist/resolver/helpers.mjs.map +0 -1
- package/dist/resolver/resolve.cjs +0 -473
- package/dist/resolver/resolve.cjs.map +0 -1
- package/dist/resolver/resolve.mjs +0 -473
- package/dist/resolver/resolve.mjs.map +0 -1
- package/dist/types/command.cjs.map +0 -1
- package/dist/types/command.d.cts.map +0 -1
- package/dist/types/command.d.mts.map +0 -1
- package/dist/types/command.mjs.map +0 -1
- package/dist/types/config.cjs.map +0 -1
- package/dist/types/config.d.cts.map +0 -1
- package/dist/types/config.d.mts.map +0 -1
- package/dist/types/config.mjs.map +0 -1
- package/dist/types/context.cjs.map +0 -1
- package/dist/types/context.d.cts.map +0 -1
- package/dist/types/context.d.mts.map +0 -1
- package/dist/types/context.mjs.map +0 -1
- package/dist/types/env.cjs +0 -53
- package/dist/types/env.cjs.map +0 -1
- package/dist/types/env.d.cts +0 -71
- package/dist/types/env.d.cts.map +0 -1
- package/dist/types/env.d.mts +0 -71
- package/dist/types/env.mjs +0 -51
- /package/dist/{types → schemas}/env.mjs.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-builtin.d.cts","names":[],"sources":["../../src/components/state-builtin.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"state-builtin.d.cts","names":[],"sources":["../../src/components/state-builtin.tsx"],"mappings":";;iBA4CgB,kDAAqB;;;;iBA2FrB,0CAAa;iBAqBb,6CAAgB;UAiUf,0BAA0B,KACzC;;;;iBAOc,aAAa,OAAO,6CAAiB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { BuiltinFileProps } from "
|
|
2
|
-
|
|
1
|
+
import { n as BuiltinFileProps } from "../power-plant-LgxcvlMN.mjs";
|
|
3
2
|
//#region src/components/state-builtin.d.ts
|
|
4
3
|
declare function GlobalTypeDefinitions(): import("@alloy-js/core").Children;
|
|
5
4
|
/**
|
|
@@ -1,43 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BuiltinFile, usePowerlines } from "../contexts/power-plant.mjs";
|
|
2
|
+
import { i as getAppTitle, t as getAppBin } from "../context-helpers-D3EJxwbq.mjs";
|
|
2
3
|
import { computedOptions } from "../contexts/options.mjs";
|
|
3
4
|
import "../plugin-utils/index.mjs";
|
|
4
5
|
import { OptionsMember, OptionsParserLogic } from "./options-parser-logic.mjs";
|
|
5
6
|
import { createComponent, createIntrinsic, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
6
7
|
import { For, Show, code, computed, splitProps } from "@alloy-js/core";
|
|
7
|
-
import defu
|
|
8
|
-
import { Spacing } from "@
|
|
9
|
-
import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
|
|
8
|
+
import { defu } from "defu";
|
|
9
|
+
import { Spacing } from "@power-plant/alloy-js/core/components/spacing";
|
|
10
10
|
import { FunctionDeclaration, InterfaceDeclaration, InterfaceMember, TypeDeclaration, VarDeclaration } from "@alloy-js/typescript";
|
|
11
|
-
import {
|
|
12
|
-
import { TSDoc, TSDocInternal, TSDocLink, TSDocParam, TSDocRemarks, TSDocReturns } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
|
|
11
|
+
import { TSDoc, TSDocInternal, TSDocLink, TSDocParam, TSDocRemarks, TSDocReturns } from "@power-plant/alloy-js/typescript/components/tsdoc";
|
|
13
12
|
|
|
14
13
|
//#region src/components/state-builtin.tsx
|
|
15
|
-
const __ΩOmit = [
|
|
16
|
-
"T",
|
|
17
|
-
"K",
|
|
18
|
-
() => __ΩPick,
|
|
19
|
-
() => __ΩExclude,
|
|
20
|
-
"Omit",
|
|
21
|
-
"b!b\"e!!e!!ge!\"o$#o##w%y"
|
|
22
|
-
];
|
|
23
|
-
const __ΩPick = [
|
|
24
|
-
"T",
|
|
25
|
-
"K",
|
|
26
|
-
"Pick",
|
|
27
|
-
"l+e#!e\"!fRb!b\"Pde\"\"N#!w#y"
|
|
28
|
-
];
|
|
29
|
-
const __ΩExclude = [
|
|
30
|
-
"T",
|
|
31
|
-
"U",
|
|
32
|
-
"Exclude",
|
|
33
|
-
"l6!Re$!RPe#!e$\"qk#%QRb!b\"Pde\"!p)w#y"
|
|
34
|
-
];
|
|
35
|
-
function __assignType(fn, args) {
|
|
36
|
-
fn.__type = args;
|
|
37
|
-
return fn;
|
|
38
|
-
}
|
|
39
14
|
function GlobalTypeDefinitions() {
|
|
40
|
-
const context =
|
|
15
|
+
const context = usePowerlines();
|
|
41
16
|
const options = computed(() => computedOptions(context.globalOptions));
|
|
42
17
|
return [
|
|
43
18
|
createComponent(TSDoc, { get heading() {
|
|
@@ -52,13 +27,7 @@ function GlobalTypeDefinitions() {
|
|
|
52
27
|
return Object.values(options.value);
|
|
53
28
|
},
|
|
54
29
|
hardline: true,
|
|
55
|
-
|
|
56
|
-
return __assignType((option) => createComponent(OptionsMember, { option }), [
|
|
57
|
-
"option",
|
|
58
|
-
"",
|
|
59
|
-
"P\"2!\"/\""
|
|
60
|
-
]);
|
|
61
|
-
}
|
|
30
|
+
children: (option) => createComponent(OptionsMember, { option })
|
|
62
31
|
});
|
|
63
32
|
}
|
|
64
33
|
}),
|
|
@@ -170,7 +139,6 @@ function GlobalTypeDefinitions() {
|
|
|
170
139
|
})
|
|
171
140
|
];
|
|
172
141
|
}
|
|
173
|
-
GlobalTypeDefinitions.__type = ["GlobalTypeDefinitions", "P\"/!"];
|
|
174
142
|
/**
|
|
175
143
|
* Generates utilities for detecting terminal color support.
|
|
176
144
|
*/
|
|
@@ -192,18 +160,9 @@ function ArgsUtilities() {
|
|
|
192
160
|
children: code`return ((globalThis as { Deno?: { args: string[] } })?.Deno?.args ?? process.argv ?? []) as string[];`
|
|
193
161
|
})];
|
|
194
162
|
}
|
|
195
|
-
ArgsUtilities.__type = [
|
|
196
|
-
"ArgsUtilities",
|
|
197
|
-
"Generates utilities for detecting terminal color support.",
|
|
198
|
-
"P\"/!?\""
|
|
199
|
-
];
|
|
200
163
|
function ContextUtilities() {
|
|
201
|
-
const context =
|
|
202
|
-
const options = computed(() => Object.fromEntries(context.globalOptions.map(
|
|
203
|
-
"option",
|
|
204
|
-
"",
|
|
205
|
-
"P\"2!\"/\""
|
|
206
|
-
]))));
|
|
164
|
+
const context = usePowerlines();
|
|
165
|
+
const options = computed(() => Object.fromEntries(context.globalOptions.map((option) => [option.name, option])));
|
|
207
166
|
return [
|
|
208
167
|
createComponent(Spacing, {}),
|
|
209
168
|
createComponent(TSDoc, {
|
|
@@ -586,14 +545,6 @@ return result;`;
|
|
|
586
545
|
})
|
|
587
546
|
];
|
|
588
547
|
}
|
|
589
|
-
ContextUtilities.__type = ["ContextUtilities", "P\"/!"];
|
|
590
|
-
const __ΩStateBuiltinProps = [
|
|
591
|
-
() => __ΩOmit,
|
|
592
|
-
"id",
|
|
593
|
-
"description",
|
|
594
|
-
"StateBuiltinProps",
|
|
595
|
-
"P!P.\".#Jo!#Mw$y"
|
|
596
|
-
];
|
|
597
548
|
/**
|
|
598
549
|
* A built-in module for handling application state utilities in Shell Shock.
|
|
599
550
|
*/
|
|
@@ -604,13 +555,13 @@ function StateBuiltin(props) {
|
|
|
604
555
|
description: "A module that provides context hooks and utilities for accessing the application state."
|
|
605
556
|
}, rest, {
|
|
606
557
|
get imports() {
|
|
607
|
-
return defu
|
|
558
|
+
return defu(rest.imports ?? {}, {
|
|
608
559
|
"node:async_hooks": ["AsyncLocalStorage"],
|
|
609
560
|
"node:crypto": ["randomUUID"]
|
|
610
561
|
});
|
|
611
562
|
},
|
|
612
563
|
get builtinImports() {
|
|
613
|
-
return defu
|
|
564
|
+
return defu(rest.builtinImports ?? {}, { env: ["isCI", "env"] });
|
|
614
565
|
},
|
|
615
566
|
get children() {
|
|
616
567
|
return [
|
|
@@ -630,14 +581,7 @@ function StateBuiltin(props) {
|
|
|
630
581
|
}
|
|
631
582
|
}));
|
|
632
583
|
}
|
|
633
|
-
StateBuiltin.__type = [
|
|
634
|
-
() => __ΩStateBuiltinProps,
|
|
635
|
-
"props",
|
|
636
|
-
"StateBuiltin",
|
|
637
|
-
"A built-in module for handling application state utilities in Shell Shock.",
|
|
638
|
-
"Pn!2\"\"/#?$"
|
|
639
|
-
];
|
|
640
584
|
|
|
641
585
|
//#endregion
|
|
642
|
-
export { ArgsUtilities, ContextUtilities, GlobalTypeDefinitions, StateBuiltin
|
|
586
|
+
export { ArgsUtilities, ContextUtilities, GlobalTypeDefinitions, StateBuiltin };
|
|
643
587
|
//# sourceMappingURL=state-builtin.mjs.map
|
|
@@ -1,29 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_context_helpers = require('../
|
|
2
|
+
const require_context_helpers = require('../context-helpers-_wUuFRB8.cjs');
|
|
3
3
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
4
|
let _alloy_js_core = require("@alloy-js/core");
|
|
5
5
|
let _stryke_string_format_snake_case = require("@stryke/string-format/snake-case");
|
|
6
6
|
|
|
7
7
|
//#region src/components/usage.tsx
|
|
8
|
-
function __assignType(fn, args) {
|
|
9
|
-
fn.__type = args;
|
|
10
|
-
return fn;
|
|
11
|
-
}
|
|
12
|
-
const __ΩUsageProps = [
|
|
13
|
-
"CommandTree",
|
|
14
|
-
"command",
|
|
15
|
-
"The command to generate help for.",
|
|
16
|
-
"npm",
|
|
17
|
-
"yarn",
|
|
18
|
-
"pnpm",
|
|
19
|
-
"bun",
|
|
20
|
-
"packageManager",
|
|
21
|
-
"The package manager to generate the usage example for.",
|
|
22
|
-
"bin",
|
|
23
|
-
"The bin name to use in the usage display.",
|
|
24
|
-
"UsageProps",
|
|
25
|
-
"P\"w!4\"?#P.$.%.&.'J4(8?)&4*?+Mw,y"
|
|
26
|
-
];
|
|
27
8
|
/**
|
|
28
9
|
* A component that generates the usage display for a command.
|
|
29
10
|
*/
|
|
@@ -50,15 +31,7 @@ function Usage(props) {
|
|
|
50
31
|
})
|
|
51
32
|
];
|
|
52
33
|
} }),
|
|
53
|
-
(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`${bin}${command.segments.length > 0 ? ` ${command.segments.map(
|
|
54
|
-
"segment",
|
|
55
|
-
"",
|
|
56
|
-
"P\"2!\"/\""
|
|
57
|
-
])).join(" ")}` : ""}${Object.values(command.children).length > 0 ? " <commands>" : ""}${command.args.length > 0 ? ` ${command.args.map(__assignType((param) => `<${(0, _stryke_string_format_snake_case.snakeCase)(param.name)}${(param.type === "string" || param.type === "number") && param.variadic ? "..." : ""}>`, [
|
|
58
|
-
"param",
|
|
59
|
-
"",
|
|
60
|
-
"P\"2!\"/\""
|
|
61
|
-
])).join(" ")}` : ""} [options]`),
|
|
34
|
+
(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`${bin}${command.segments.length > 0 ? ` ${command.segments.map((segment) => require_context_helpers.isDynamicPathSegment(segment) ? `[${(0, _stryke_string_format_snake_case.snakeCase)(require_context_helpers.getDynamicPathSegmentName(segment))}]` : segment).join(" ")}` : ""}${Object.values(command.children).length > 0 ? " <commands>" : ""}${command.args.length > 0 ? ` ${command.args.map((param) => `<${(0, _stryke_string_format_snake_case.snakeCase)(param.name)}${(param.type === "string" || param.type === "number") && param.variadic ? "..." : ""}>`).join(" ")}` : ""} [options]`),
|
|
62
35
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
63
36
|
get when() {
|
|
64
37
|
return command.args.length > 0;
|
|
@@ -86,29 +59,12 @@ function Usage(props) {
|
|
|
86
59
|
})
|
|
87
60
|
];
|
|
88
61
|
} }),
|
|
89
|
-
(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`${bin}${command.segments.length > 0 ? ` ${command.segments.map(
|
|
90
|
-
"segment",
|
|
91
|
-
"",
|
|
92
|
-
"P\"2!\"/\""
|
|
93
|
-
])).join(" ")}` : ""}${Object.values(command.children).length > 0 ? " <commands>" : ""} [options] ${command.args.length > 0 ? command.args.map(__assignType((param) => `<${(0, _stryke_string_format_snake_case.snakeCase)(param.name)}${(param.type === "string" || param.type === "number") && param.variadic ? "..." : ""}>`, [
|
|
94
|
-
"param",
|
|
95
|
-
"",
|
|
96
|
-
"P\"2!\"/\""
|
|
97
|
-
])).join(" ") : ""}`)
|
|
62
|
+
(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`${bin}${command.segments.length > 0 ? ` ${command.segments.map((segment) => require_context_helpers.isDynamicPathSegment(segment) ? `[${(0, _stryke_string_format_snake_case.snakeCase)(require_context_helpers.getDynamicPathSegmentName(segment))}]` : segment).join(" ")}` : ""}${Object.values(command.children).length > 0 ? " <commands>" : ""} [options] ${command.args.length > 0 ? command.args.map((param) => `<${(0, _stryke_string_format_snake_case.snakeCase)(param.name)}${(param.type === "string" || param.type === "number") && param.variadic ? "..." : ""}>`).join(" ") : ""}`)
|
|
98
63
|
];
|
|
99
64
|
}
|
|
100
65
|
})
|
|
101
66
|
];
|
|
102
67
|
}
|
|
103
|
-
Usage.__type = [
|
|
104
|
-
() => __ΩUsageProps,
|
|
105
|
-
"props",
|
|
106
|
-
"Usage",
|
|
107
|
-
"A component that generates the usage display for a command.",
|
|
108
|
-
"Pn!2\"\"/#?$"
|
|
109
|
-
];
|
|
110
68
|
|
|
111
69
|
//#endregion
|
|
112
|
-
exports.Usage = Usage;
|
|
113
|
-
exports.__ΩUsageProps = __ΩUsageProps;
|
|
114
|
-
//# sourceMappingURL=usage.cjs.map
|
|
70
|
+
exports.Usage = Usage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.cts","names":[],"sources":["../../src/components/usage.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"usage.d.cts","names":[],"sources":["../../src/components/usage.tsx"],"mappings":";;UA0BiB;;;;EAIf,SAAS;;;;;;;EAQT;;;;EAKA;;;;;iBAMc,MAAM,OAAO,sCAAU"}
|
|
@@ -1,28 +1,9 @@
|
|
|
1
|
-
import { getDynamicPathSegmentName, isDynamicPathSegment } from "../
|
|
1
|
+
import { a as getDynamicPathSegmentName, c as isDynamicPathSegment } from "../context-helpers-D3EJxwbq.mjs";
|
|
2
2
|
import { createComponent, createIntrinsic, memo } from "@alloy-js/core/jsx-runtime";
|
|
3
3
|
import { Match, Show, Switch, code } from "@alloy-js/core";
|
|
4
4
|
import { snakeCase } from "@stryke/string-format/snake-case";
|
|
5
5
|
|
|
6
6
|
//#region src/components/usage.tsx
|
|
7
|
-
function __assignType(fn, args) {
|
|
8
|
-
fn.__type = args;
|
|
9
|
-
return fn;
|
|
10
|
-
}
|
|
11
|
-
const __ΩUsageProps = [
|
|
12
|
-
"CommandTree",
|
|
13
|
-
"command",
|
|
14
|
-
"The command to generate help for.",
|
|
15
|
-
"npm",
|
|
16
|
-
"yarn",
|
|
17
|
-
"pnpm",
|
|
18
|
-
"bun",
|
|
19
|
-
"packageManager",
|
|
20
|
-
"The package manager to generate the usage example for.",
|
|
21
|
-
"bin",
|
|
22
|
-
"The bin name to use in the usage display.",
|
|
23
|
-
"UsageProps",
|
|
24
|
-
"P\"w!4\"?#P.$.%.&.'J4(8?)&4*?+Mw,y"
|
|
25
|
-
];
|
|
26
7
|
/**
|
|
27
8
|
* A component that generates the usage display for a command.
|
|
28
9
|
*/
|
|
@@ -49,15 +30,7 @@ function Usage(props) {
|
|
|
49
30
|
})
|
|
50
31
|
];
|
|
51
32
|
} }),
|
|
52
|
-
memo(() => code`${bin}${command.segments.length > 0 ? ` ${command.segments.map(
|
|
53
|
-
"segment",
|
|
54
|
-
"",
|
|
55
|
-
"P\"2!\"/\""
|
|
56
|
-
])).join(" ")}` : ""}${Object.values(command.children).length > 0 ? " <commands>" : ""}${command.args.length > 0 ? ` ${command.args.map(__assignType((param) => `<${snakeCase(param.name)}${(param.type === "string" || param.type === "number") && param.variadic ? "..." : ""}>`, [
|
|
57
|
-
"param",
|
|
58
|
-
"",
|
|
59
|
-
"P\"2!\"/\""
|
|
60
|
-
])).join(" ")}` : ""} [options]`),
|
|
33
|
+
memo(() => code`${bin}${command.segments.length > 0 ? ` ${command.segments.map((segment) => isDynamicPathSegment(segment) ? `[${snakeCase(getDynamicPathSegmentName(segment))}]` : segment).join(" ")}` : ""}${Object.values(command.children).length > 0 ? " <commands>" : ""}${command.args.length > 0 ? ` ${command.args.map((param) => `<${snakeCase(param.name)}${(param.type === "string" || param.type === "number") && param.variadic ? "..." : ""}>`).join(" ")}` : ""} [options]`),
|
|
61
34
|
createComponent(Show, {
|
|
62
35
|
get when() {
|
|
63
36
|
return command.args.length > 0;
|
|
@@ -85,28 +58,13 @@ function Usage(props) {
|
|
|
85
58
|
})
|
|
86
59
|
];
|
|
87
60
|
} }),
|
|
88
|
-
memo(() => code`${bin}${command.segments.length > 0 ? ` ${command.segments.map(
|
|
89
|
-
"segment",
|
|
90
|
-
"",
|
|
91
|
-
"P\"2!\"/\""
|
|
92
|
-
])).join(" ")}` : ""}${Object.values(command.children).length > 0 ? " <commands>" : ""} [options] ${command.args.length > 0 ? command.args.map(__assignType((param) => `<${snakeCase(param.name)}${(param.type === "string" || param.type === "number") && param.variadic ? "..." : ""}>`, [
|
|
93
|
-
"param",
|
|
94
|
-
"",
|
|
95
|
-
"P\"2!\"/\""
|
|
96
|
-
])).join(" ") : ""}`)
|
|
61
|
+
memo(() => code`${bin}${command.segments.length > 0 ? ` ${command.segments.map((segment) => isDynamicPathSegment(segment) ? `[${snakeCase(getDynamicPathSegmentName(segment))}]` : segment).join(" ")}` : ""}${Object.values(command.children).length > 0 ? " <commands>" : ""} [options] ${command.args.length > 0 ? command.args.map((param) => `<${snakeCase(param.name)}${(param.type === "string" || param.type === "number") && param.variadic ? "..." : ""}>`).join(" ") : ""}`)
|
|
97
62
|
];
|
|
98
63
|
}
|
|
99
64
|
})
|
|
100
65
|
];
|
|
101
66
|
}
|
|
102
|
-
Usage.__type = [
|
|
103
|
-
() => __ΩUsageProps,
|
|
104
|
-
"props",
|
|
105
|
-
"Usage",
|
|
106
|
-
"A component that generates the usage display for a command.",
|
|
107
|
-
"Pn!2\"\"/#?$"
|
|
108
|
-
];
|
|
109
67
|
|
|
110
68
|
//#endregion
|
|
111
|
-
export { Usage
|
|
69
|
+
export { Usage };
|
|
112
70
|
//# sourceMappingURL=usage.mjs.map
|