@shell-shock/plugin-completions 0.4.30 → 0.4.32
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/bash-config-command.cjs +17 -17
- package/dist/components/bash-config-command.d.cts.map +1 -1
- package/dist/components/bash-config-command.mjs +5 -5
- package/dist/components/bash-script-command.cjs +14 -14
- package/dist/components/bash-script-command.d.cts.map +1 -1
- package/dist/components/bash-script-command.mjs +5 -5
- package/dist/components/bash-shared.cjs +8 -8
- package/dist/components/bash-shared.d.cts.map +1 -1
- package/dist/components/bash-shared.mjs +4 -4
- package/dist/components/fish-config-command.cjs +17 -17
- package/dist/components/fish-config-command.d.cts.map +1 -1
- package/dist/components/fish-config-command.mjs +5 -5
- package/dist/components/fish-script-command.cjs +13 -13
- package/dist/components/fish-script-command.d.cts.map +1 -1
- package/dist/components/fish-script-command.mjs +5 -5
- package/dist/components/fish-shared.cjs +8 -8
- package/dist/components/fish-shared.d.cts.map +1 -1
- package/dist/components/fish-shared.mjs +4 -4
- package/dist/components/powershell-config-command.cjs +15 -15
- package/dist/components/powershell-config-command.d.cts.map +1 -1
- package/dist/components/powershell-config-command.mjs +4 -4
- package/dist/components/powershell-script-command.cjs +14 -14
- package/dist/components/powershell-script-command.d.cts.map +1 -1
- package/dist/components/powershell-script-command.mjs +5 -5
- package/dist/components/powershell-shared.cjs +8 -8
- package/dist/components/powershell-shared.d.cts.map +1 -1
- package/dist/components/powershell-shared.mjs +4 -4
- package/dist/components/zsh-config-command.cjs +17 -17
- package/dist/components/zsh-config-command.d.cts.map +1 -1
- package/dist/components/zsh-config-command.mjs +5 -5
- package/dist/components/zsh-script-command.cjs +14 -14
- package/dist/components/zsh-script-command.d.cts.map +1 -1
- package/dist/components/zsh-script-command.mjs +5 -5
- package/dist/components/zsh-shared.cjs +8 -8
- package/dist/components/zsh-shared.d.cts.map +1 -1
- package/dist/components/zsh-shared.mjs +4 -4
- package/dist/generator-BDvpem35.cjs +63 -0
- package/dist/generator-DQoArSbb.mjs +59 -0
- package/dist/generator-DQoArSbb.mjs.map +1 -0
- package/dist/generator.cjs +5 -0
- package/dist/generator.d.cts +10 -0
- package/dist/generator.d.cts.map +1 -0
- package/dist/generator.d.mts +10 -0
- package/dist/generator.d.mts.map +1 -0
- package/dist/generator.mjs +3 -0
- package/dist/helpers/complete-command.cjs +0 -1
- package/dist/helpers/complete-command.d.cts.map +1 -1
- package/dist/helpers/completion-directive-constants.cjs +0 -1
- package/dist/helpers/completion-directive-constants.d.cts.map +1 -1
- package/dist/index.cjs +221 -238
- package/dist/index.d.cts +4 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +221 -239
- package/dist/shell-type-DETq6QwA.d.cts +6 -0
- package/dist/shell-type-DETq6QwA.d.cts.map +1 -0
- package/dist/shell-type-DETq6QwA.d.mts +6 -0
- package/dist/shell-type-DETq6QwA.d.mts.map +1 -0
- package/dist/types/index.cjs +1 -0
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.d.cts +1 -2
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +1 -2
- package/dist/types/shell-type.cjs +0 -1
- package/dist/types/shell-type.d.cts +2 -6
- package/dist/types/shell-type.d.mts +2 -6
- package/package.json +28 -14
- package/dist/types/shell-type.d.cts.map +0 -1
- package/dist/types/shell-type.d.mts.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
2
|
let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
|
|
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 _alloy_js_typescript = require("@alloy-js/typescript");
|
|
6
|
-
let
|
|
7
|
-
let
|
|
8
|
-
let
|
|
6
|
+
let _power_plant_alloy_js_core = require("@power-plant/alloy-js/core");
|
|
7
|
+
let _power_plant_alloy_js_typescript = require("@power-plant/alloy-js/typescript");
|
|
8
|
+
let _shell_shock_core_contexts_power_plant = require("@shell-shock/core/contexts/power-plant");
|
|
9
9
|
let _stryke_path = require("@stryke/path");
|
|
10
10
|
|
|
11
11
|
//#region src/components/powershell-config-command.tsx
|
|
12
12
|
function PowerShellConfigCompletionsCommand() {
|
|
13
|
-
const context = (0,
|
|
14
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
13
|
+
const context = (0, _shell_shock_core_contexts_power_plant.usePowerlines)();
|
|
14
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.TypescriptFile, {
|
|
15
15
|
get path() {
|
|
16
16
|
return (0, _stryke_path.joinPaths)(context.entryPath, "completions", "powershell", "config", "command.ts");
|
|
17
17
|
},
|
|
@@ -31,27 +31,27 @@ function PowerShellConfigCompletionsCommand() {
|
|
|
31
31
|
] },
|
|
32
32
|
get children() {
|
|
33
33
|
return [
|
|
34
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
34
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.TSDoc, { heading: "Options for the PowerShell Completions - Configuration command." }),
|
|
35
35
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
|
|
36
36
|
"export": true,
|
|
37
37
|
name: "PowerShellConfigCompletionsOptions",
|
|
38
38
|
get children() {
|
|
39
|
-
return [(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
39
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.TSDoc, {
|
|
40
40
|
heading: "Should the generated completion script be written to console output instead of an actual file on disk? This is useful for debugging purposes or if you want to manually handle the output.",
|
|
41
41
|
get children() {
|
|
42
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
42
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.TSDocDefaultValue, {
|
|
43
43
|
type: "boolean",
|
|
44
44
|
defaultValue: false
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
}), (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
47
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.InterfaceMember, {
|
|
48
48
|
name: "display",
|
|
49
49
|
type: "boolean"
|
|
50
50
|
})];
|
|
51
51
|
}
|
|
52
52
|
}),
|
|
53
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
54
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
53
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core.Spacing, {}),
|
|
54
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.TSDoc, { heading: "Handler logic for the \\`completions powershell config\\` command." }),
|
|
55
55
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
56
56
|
"export": true,
|
|
57
57
|
"default": true,
|
|
@@ -77,19 +77,19 @@ function PowerShellConfigCompletionsCommand() {
|
|
|
77
77
|
type: "string",
|
|
78
78
|
initializer: _alloy_js_core.code` path.includes(".") ? path : join(path, "Microsoft.PowerShell_profile.ps1");`
|
|
79
79
|
}),
|
|
80
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
80
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core.Spacing, {}),
|
|
81
81
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
82
82
|
condition: _alloy_js_core.code`configPath.startsWith("~")`,
|
|
83
83
|
children: _alloy_js_core.code`configPath = join(os.homedir(), configPath.replace("~", "")); `
|
|
84
84
|
}),
|
|
85
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
85
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core.Spacing, {}),
|
|
86
86
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
87
87
|
"let": true,
|
|
88
88
|
name: "content",
|
|
89
89
|
type: "string",
|
|
90
90
|
initializer: _alloy_js_core.code`"";`
|
|
91
91
|
}),
|
|
92
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
92
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core.Spacing, {}),
|
|
93
93
|
(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`try {
|
|
94
94
|
content = await readFile(configPath, "utf8");
|
|
95
95
|
} catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powershell-config-command.d.cts","names":[],"sources":["../../src/components/powershell-config-command.tsx"],"mappings":";iBAsCgB
|
|
1
|
+
{"version":3,"file":"powershell-config-command.d.cts","names":[],"sources":["../../src/components/powershell-config-command.tsx"],"mappings":";iBAsCgB,+DAAkC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { createComponent, memo } from "@alloy-js/core/jsx-runtime";
|
|
2
1
|
import { getAppTitle } from "@shell-shock/core/plugin-utils";
|
|
2
|
+
import { createComponent, memo } from "@alloy-js/core/jsx-runtime";
|
|
3
3
|
import { code } from "@alloy-js/core";
|
|
4
4
|
import { ElseClause, FunctionDeclaration, IfStatement, InterfaceDeclaration, VarDeclaration } from "@alloy-js/typescript";
|
|
5
|
-
import { Spacing } from "@
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { Spacing } from "@power-plant/alloy-js/core";
|
|
6
|
+
import { InterfaceMember, TSDoc, TSDocDefaultValue, TypescriptFile } from "@power-plant/alloy-js/typescript";
|
|
7
|
+
import { usePowerlines } from "@shell-shock/core/contexts/power-plant";
|
|
8
8
|
import { joinPaths } from "@stryke/path";
|
|
9
9
|
|
|
10
10
|
//#region src/components/powershell-config-command.tsx
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
2
|
let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
|
|
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 _alloy_js_typescript = require("@alloy-js/typescript");
|
|
6
|
-
let
|
|
7
|
-
let
|
|
8
|
-
let
|
|
9
|
-
let
|
|
6
|
+
let _power_plant_alloy_js_core = require("@power-plant/alloy-js/core");
|
|
7
|
+
let _power_plant_alloy_js_typescript = require("@power-plant/alloy-js/typescript");
|
|
8
|
+
let _power_plant_alloy_js_typescript_components_tsdoc = require("@power-plant/alloy-js/typescript/components/tsdoc");
|
|
9
|
+
let _shell_shock_core_contexts_power_plant = require("@shell-shock/core/contexts/power-plant");
|
|
10
10
|
let _stryke_path = require("@stryke/path");
|
|
11
11
|
|
|
12
12
|
//#region src/components/powershell-script-command.tsx
|
|
@@ -14,9 +14,9 @@ let _stryke_path = require("@stryke/path");
|
|
|
14
14
|
* The PowerShell Completions - Script command's handler wrapper for the Shell Shock project.
|
|
15
15
|
*/
|
|
16
16
|
function PowerShellScriptCompletionsCommand() {
|
|
17
|
-
const context = (0,
|
|
17
|
+
const context = (0, _shell_shock_core_contexts_power_plant.usePowerlines)();
|
|
18
18
|
const bin = (0, _alloy_js_core.computed)(() => (0, _shell_shock_core_plugin_utils.getAppBin)(context));
|
|
19
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
19
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.TypescriptFile, {
|
|
20
20
|
get path() {
|
|
21
21
|
return (0, _stryke_path.joinPaths)(context.entryPath, "completions", "powershell", "script", "command.ts");
|
|
22
22
|
},
|
|
@@ -35,27 +35,27 @@ function PowerShellScriptCompletionsCommand() {
|
|
|
35
35
|
] },
|
|
36
36
|
get children() {
|
|
37
37
|
return [
|
|
38
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
39
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
38
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "Options for the PowerShell Completions - Script command." }),
|
|
39
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.InterfaceDeclaration, {
|
|
40
40
|
"export": true,
|
|
41
41
|
name: "PowerShellScriptCompletionsOptions",
|
|
42
42
|
get children() {
|
|
43
|
-
return [(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
43
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
|
|
44
44
|
heading: "Should the generated completion script be written to console output instead of an actual file on disk? This is useful for debugging purposes or if you want to manually handle the output.",
|
|
45
45
|
get children() {
|
|
46
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
46
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocDefaultValue, {
|
|
47
47
|
type: "boolean",
|
|
48
48
|
defaultValue: false
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
}), (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
51
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.InterfaceMember, {
|
|
52
52
|
name: "display",
|
|
53
53
|
type: "boolean"
|
|
54
54
|
})];
|
|
55
55
|
}
|
|
56
56
|
}),
|
|
57
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
58
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
57
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core.Spacing, {}),
|
|
58
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "Handler logic for the \\`completions powershell script\\` command." }),
|
|
59
59
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
60
60
|
"export": true,
|
|
61
61
|
"default": true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powershell-script-command.d.cts","names":[],"sources":["../../src/components/powershell-script-command.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"powershell-script-command.d.cts","names":[],"sources":["../../src/components/powershell-script-command.tsx"],"mappings":";;;;iBA2CgB,+DAAkC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { createComponent, memo } from "@alloy-js/core/jsx-runtime";
|
|
2
1
|
import { getAppBin, getAppTitle } from "@shell-shock/core/plugin-utils";
|
|
2
|
+
import { createComponent, memo } from "@alloy-js/core/jsx-runtime";
|
|
3
3
|
import { code, computed } from "@alloy-js/core";
|
|
4
4
|
import { ElseClause, FunctionDeclaration, IfStatement, VarDeclaration } from "@alloy-js/typescript";
|
|
5
|
-
import { Spacing } from "@
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { Spacing } from "@power-plant/alloy-js/core";
|
|
6
|
+
import { InterfaceDeclaration as InterfaceDeclaration$1, InterfaceMember, TypescriptFile } from "@power-plant/alloy-js/typescript";
|
|
7
|
+
import { TSDoc as TSDoc$1, TSDocDefaultValue as TSDocDefaultValue$1 } from "@power-plant/alloy-js/typescript/components/tsdoc";
|
|
8
|
+
import { usePowerlines } from "@shell-shock/core/contexts/power-plant";
|
|
9
9
|
import { joinPaths } from "@stryke/path";
|
|
10
10
|
|
|
11
11
|
//#region src/components/powershell-script-command.tsx
|
|
@@ -2,13 +2,13 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2
2
|
const require_helpers_complete_command = require('../helpers/complete-command.cjs');
|
|
3
3
|
const require_helpers_completion_directive_constants = require('../helpers/completion-directive-constants.cjs');
|
|
4
4
|
require('../helpers/index.cjs');
|
|
5
|
-
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
5
|
let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
|
|
6
|
+
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
7
7
|
let _alloy_js_core = require("@alloy-js/core");
|
|
8
8
|
let _alloy_js_typescript = require("@alloy-js/typescript");
|
|
9
|
-
let
|
|
10
|
-
let
|
|
11
|
-
let
|
|
9
|
+
let _power_plant_alloy_js_core = require("@power-plant/alloy-js/core");
|
|
10
|
+
let _power_plant_alloy_js_typescript = require("@power-plant/alloy-js/typescript");
|
|
11
|
+
let _shell_shock_core_contexts_power_plant = require("@shell-shock/core/contexts/power-plant");
|
|
12
12
|
let _stryke_path = require("@stryke/path");
|
|
13
13
|
let _stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
|
|
14
14
|
|
|
@@ -17,10 +17,10 @@ let _stryke_string_format_camel_case = require("@stryke/string-format/camel-case
|
|
|
17
17
|
* The PowerShell Completions generation for the Shell Shock project.
|
|
18
18
|
*/
|
|
19
19
|
function PowerShellCompletionsShared() {
|
|
20
|
-
const context = (0,
|
|
20
|
+
const context = (0, _shell_shock_core_contexts_power_plant.usePowerlines)();
|
|
21
21
|
const bin = (0, _alloy_js_core.computed)(() => (0, _shell_shock_core_plugin_utils.getAppBin)(context));
|
|
22
22
|
const name = (0, _alloy_js_core.computed)(() => (0, _stryke_string_format_camel_case.camelCase)(bin.value));
|
|
23
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
23
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.TypescriptFile, {
|
|
24
24
|
get path() {
|
|
25
25
|
return (0, _stryke_path.joinPaths)(context.entryPath, "completions", "powershell", "shared.ts");
|
|
26
26
|
},
|
|
@@ -40,7 +40,7 @@ function PowerShellCompletionsShared() {
|
|
|
40
40
|
] },
|
|
41
41
|
get children() {
|
|
42
42
|
return [
|
|
43
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
43
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core.Spacing, {}),
|
|
44
44
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
45
45
|
"const": true,
|
|
46
46
|
"export": true,
|
|
@@ -295,7 +295,7 @@ Register-ArgumentCompleter -CommandName '${bin.value}' -ScriptBlock $__${name.va
|
|
|
295
295
|
\`; `;
|
|
296
296
|
}
|
|
297
297
|
}),
|
|
298
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
298
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core.Spacing, {}),
|
|
299
299
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
300
300
|
"export": true,
|
|
301
301
|
"const": true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powershell-shared.d.cts","names":[],"sources":["../../src/components/powershell-shared.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"powershell-shared.d.cts","names":[],"sources":["../../src/components/powershell-shared.tsx"],"mappings":";;;;iBAiCgB,wDAA2B"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { EXEC_COMMAND } from "../helpers/complete-command.mjs";
|
|
2
2
|
import { CompletionDirective } from "../helpers/completion-directive-constants.mjs";
|
|
3
3
|
import "../helpers/index.mjs";
|
|
4
|
-
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
5
4
|
import { getAppBin, getAppTitle } from "@shell-shock/core/plugin-utils";
|
|
5
|
+
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
6
6
|
import { code, computed } from "@alloy-js/core";
|
|
7
7
|
import { VarDeclaration } from "@alloy-js/typescript";
|
|
8
|
-
import { Spacing } from "@
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { Spacing } from "@power-plant/alloy-js/core";
|
|
9
|
+
import { TypescriptFile } from "@power-plant/alloy-js/typescript";
|
|
10
|
+
import { usePowerlines } from "@shell-shock/core/contexts/power-plant";
|
|
11
11
|
import { joinPaths } from "@stryke/path";
|
|
12
12
|
import { camelCase } from "@stryke/string-format/camel-case";
|
|
13
13
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
2
|
let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
|
|
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 _alloy_js_typescript = require("@alloy-js/typescript");
|
|
6
|
-
let
|
|
7
|
-
let
|
|
8
|
-
let
|
|
9
|
-
let
|
|
6
|
+
let _power_plant_alloy_js_core = require("@power-plant/alloy-js/core");
|
|
7
|
+
let _power_plant_alloy_js_typescript = require("@power-plant/alloy-js/typescript");
|
|
8
|
+
let _power_plant_alloy_js_typescript_components_tsdoc = require("@power-plant/alloy-js/typescript/components/tsdoc");
|
|
9
|
+
let _shell_shock_core_contexts_power_plant = require("@shell-shock/core/contexts/power-plant");
|
|
10
10
|
let _stryke_path = require("@stryke/path");
|
|
11
11
|
|
|
12
12
|
//#region src/components/zsh-config-command.tsx
|
|
@@ -14,8 +14,8 @@ let _stryke_path = require("@stryke/path");
|
|
|
14
14
|
* The Zsh Completions - Configuration command's handler wrapper for the Shell Shock project.
|
|
15
15
|
*/
|
|
16
16
|
function ZshConfigCompletionsCommand() {
|
|
17
|
-
const context = (0,
|
|
18
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
17
|
+
const context = (0, _shell_shock_core_contexts_power_plant.usePowerlines)();
|
|
18
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.TypescriptFile, {
|
|
19
19
|
get path() {
|
|
20
20
|
return (0, _stryke_path.joinPaths)(context.entryPath, "completions", "zsh", "config", "command.ts");
|
|
21
21
|
},
|
|
@@ -35,27 +35,27 @@ function ZshConfigCompletionsCommand() {
|
|
|
35
35
|
] },
|
|
36
36
|
get children() {
|
|
37
37
|
return [
|
|
38
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
39
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
38
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "Options for the Zsh Completions - Configuration command." }),
|
|
39
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.InterfaceDeclaration, {
|
|
40
40
|
"export": true,
|
|
41
41
|
name: "ZshConfigCompletionsOptions",
|
|
42
42
|
get children() {
|
|
43
|
-
return [(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
43
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
|
|
44
44
|
heading: "Should the generated completion script be written to console output instead of an actual file on disk? This is useful for debugging purposes or if you want to manually handle the output.",
|
|
45
45
|
get children() {
|
|
46
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
46
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocDefaultValue, {
|
|
47
47
|
type: "boolean",
|
|
48
48
|
defaultValue: false
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
}), (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
51
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.InterfaceMember, {
|
|
52
52
|
name: "display",
|
|
53
53
|
type: "boolean"
|
|
54
54
|
})];
|
|
55
55
|
}
|
|
56
56
|
}),
|
|
57
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
58
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
57
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core.Spacing, {}),
|
|
58
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "Handler logic for the \\`completions zsh config\\` command." }),
|
|
59
59
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
60
60
|
"export": true,
|
|
61
61
|
"default": true,
|
|
@@ -81,19 +81,19 @@ function ZshConfigCompletionsCommand() {
|
|
|
81
81
|
type: "string",
|
|
82
82
|
initializer: _alloy_js_core.code` path.includes(".") ? path : join(path, ".zshrc");`
|
|
83
83
|
}),
|
|
84
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
84
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core.Spacing, {}),
|
|
85
85
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
86
86
|
condition: _alloy_js_core.code`configPath.startsWith("~")`,
|
|
87
87
|
children: _alloy_js_core.code`configPath = join(os.homedir(), configPath.replace("~", "")); `
|
|
88
88
|
}),
|
|
89
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
89
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core.Spacing, {}),
|
|
90
90
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
91
91
|
"let": true,
|
|
92
92
|
name: "content",
|
|
93
93
|
type: "string",
|
|
94
94
|
initializer: _alloy_js_core.code`"";`
|
|
95
95
|
}),
|
|
96
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
96
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core.Spacing, {}),
|
|
97
97
|
(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`try {
|
|
98
98
|
content = await readFile(configPath, "utf8");
|
|
99
99
|
} catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zsh-config-command.d.cts","names":[],"sources":["../../src/components/zsh-config-command.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"zsh-config-command.d.cts","names":[],"sources":["../../src/components/zsh-config-command.tsx"],"mappings":";;;;iBA2CgB,wDAA2B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { createComponent, memo } from "@alloy-js/core/jsx-runtime";
|
|
2
1
|
import { getAppTitle } from "@shell-shock/core/plugin-utils";
|
|
2
|
+
import { createComponent, memo } from "@alloy-js/core/jsx-runtime";
|
|
3
3
|
import { code } from "@alloy-js/core";
|
|
4
4
|
import { ElseClause, FunctionDeclaration, IfStatement, VarDeclaration } from "@alloy-js/typescript";
|
|
5
|
-
import { Spacing } from "@
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { Spacing } from "@power-plant/alloy-js/core";
|
|
6
|
+
import { InterfaceDeclaration as InterfaceDeclaration$1, InterfaceMember, TypescriptFile } from "@power-plant/alloy-js/typescript";
|
|
7
|
+
import { TSDoc as TSDoc$1, TSDocDefaultValue as TSDocDefaultValue$1 } from "@power-plant/alloy-js/typescript/components/tsdoc";
|
|
8
|
+
import { usePowerlines } from "@shell-shock/core/contexts/power-plant";
|
|
9
9
|
import { joinPaths } from "@stryke/path";
|
|
10
10
|
|
|
11
11
|
//#region src/components/zsh-config-command.tsx
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
2
|
let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
|
|
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 _alloy_js_typescript = require("@alloy-js/typescript");
|
|
6
|
-
let
|
|
7
|
-
let
|
|
8
|
-
let
|
|
9
|
-
let
|
|
6
|
+
let _power_plant_alloy_js_core = require("@power-plant/alloy-js/core");
|
|
7
|
+
let _power_plant_alloy_js_typescript = require("@power-plant/alloy-js/typescript");
|
|
8
|
+
let _power_plant_alloy_js_typescript_components_tsdoc = require("@power-plant/alloy-js/typescript/components/tsdoc");
|
|
9
|
+
let _shell_shock_core_contexts_power_plant = require("@shell-shock/core/contexts/power-plant");
|
|
10
10
|
let _stryke_path = require("@stryke/path");
|
|
11
11
|
let _stryke_string_format_snake_case = require("@stryke/string-format/snake-case");
|
|
12
12
|
|
|
@@ -15,10 +15,10 @@ let _stryke_string_format_snake_case = require("@stryke/string-format/snake-case
|
|
|
15
15
|
* The Zsh Completions - Script command's handler wrapper for the Shell Shock project.
|
|
16
16
|
*/
|
|
17
17
|
function ZshScriptCompletionsCommand() {
|
|
18
|
-
const context = (0,
|
|
18
|
+
const context = (0, _shell_shock_core_contexts_power_plant.usePowerlines)();
|
|
19
19
|
const bin = (0, _alloy_js_core.computed)(() => (0, _shell_shock_core_plugin_utils.getAppBin)(context));
|
|
20
20
|
const name = (0, _alloy_js_core.computed)(() => (0, _stryke_string_format_snake_case.snakeCase)(bin.value));
|
|
21
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
21
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.TypescriptFile, {
|
|
22
22
|
get path() {
|
|
23
23
|
return (0, _stryke_path.joinPaths)(context.entryPath, "completions", "zsh", "script", "command.ts");
|
|
24
24
|
},
|
|
@@ -37,27 +37,27 @@ function ZshScriptCompletionsCommand() {
|
|
|
37
37
|
] },
|
|
38
38
|
get children() {
|
|
39
39
|
return [
|
|
40
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
41
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
40
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "Options for the Zsh Completions - Script command." }),
|
|
41
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.InterfaceDeclaration, {
|
|
42
42
|
"export": true,
|
|
43
43
|
name: "ZshScriptCompletionsOptions",
|
|
44
44
|
get children() {
|
|
45
|
-
return [(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
45
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
|
|
46
46
|
heading: "Should the generated completion script be written to console output instead of an actual file on disk? This is useful for debugging purposes or if you want to manually handle the output.",
|
|
47
47
|
get children() {
|
|
48
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
48
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocDefaultValue, {
|
|
49
49
|
type: "boolean",
|
|
50
50
|
defaultValue: false
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
}), (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
53
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.InterfaceMember, {
|
|
54
54
|
name: "display",
|
|
55
55
|
type: "boolean"
|
|
56
56
|
})];
|
|
57
57
|
}
|
|
58
58
|
}),
|
|
59
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
60
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
59
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core.Spacing, {}),
|
|
60
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "Handler logic for the \\`completions zsh script\\` command." }),
|
|
61
61
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
62
62
|
"export": true,
|
|
63
63
|
"default": true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zsh-script-command.d.cts","names":[],"sources":["../../src/components/zsh-script-command.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"zsh-script-command.d.cts","names":[],"sources":["../../src/components/zsh-script-command.tsx"],"mappings":";;;;iBA4CgB,wDAA2B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { createComponent, memo } from "@alloy-js/core/jsx-runtime";
|
|
2
1
|
import { getAppBin, getAppTitle } from "@shell-shock/core/plugin-utils";
|
|
2
|
+
import { createComponent, memo } from "@alloy-js/core/jsx-runtime";
|
|
3
3
|
import { code, computed } from "@alloy-js/core";
|
|
4
4
|
import { ElseClause, FunctionDeclaration, IfStatement, VarDeclaration } from "@alloy-js/typescript";
|
|
5
|
-
import { Spacing } from "@
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { Spacing } from "@power-plant/alloy-js/core";
|
|
6
|
+
import { InterfaceDeclaration as InterfaceDeclaration$1, InterfaceMember, TypescriptFile } from "@power-plant/alloy-js/typescript";
|
|
7
|
+
import { TSDoc as TSDoc$1, TSDocDefaultValue as TSDocDefaultValue$1 } from "@power-plant/alloy-js/typescript/components/tsdoc";
|
|
8
|
+
import { usePowerlines } from "@shell-shock/core/contexts/power-plant";
|
|
9
9
|
import { joinPaths } from "@stryke/path";
|
|
10
10
|
import { snakeCase } from "@stryke/string-format/snake-case";
|
|
11
11
|
|
|
@@ -2,13 +2,13 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2
2
|
const require_helpers_complete_command = require('../helpers/complete-command.cjs');
|
|
3
3
|
const require_helpers_completion_directive_constants = require('../helpers/completion-directive-constants.cjs');
|
|
4
4
|
require('../helpers/index.cjs');
|
|
5
|
-
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
5
|
let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
|
|
6
|
+
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
7
7
|
let _alloy_js_core = require("@alloy-js/core");
|
|
8
8
|
let _alloy_js_typescript = require("@alloy-js/typescript");
|
|
9
|
-
let
|
|
10
|
-
let
|
|
11
|
-
let
|
|
9
|
+
let _power_plant_alloy_js_core = require("@power-plant/alloy-js/core");
|
|
10
|
+
let _power_plant_alloy_js_typescript = require("@power-plant/alloy-js/typescript");
|
|
11
|
+
let _shell_shock_core_contexts_power_plant = require("@shell-shock/core/contexts/power-plant");
|
|
12
12
|
let _stryke_path = require("@stryke/path");
|
|
13
13
|
let _stryke_string_format_snake_case = require("@stryke/string-format/snake-case");
|
|
14
14
|
|
|
@@ -17,10 +17,10 @@ let _stryke_string_format_snake_case = require("@stryke/string-format/snake-case
|
|
|
17
17
|
* The Zsh Completions generation for the Shell Shock project.
|
|
18
18
|
*/
|
|
19
19
|
function ZshCompletionsShared() {
|
|
20
|
-
const context = (0,
|
|
20
|
+
const context = (0, _shell_shock_core_contexts_power_plant.usePowerlines)();
|
|
21
21
|
const bin = (0, _alloy_js_core.computed)(() => (0, _shell_shock_core_plugin_utils.getAppBin)(context));
|
|
22
22
|
const name = (0, _alloy_js_core.computed)(() => (0, _stryke_string_format_snake_case.snakeCase)(bin.value));
|
|
23
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
23
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.TypescriptFile, {
|
|
24
24
|
get path() {
|
|
25
25
|
return (0, _stryke_path.joinPaths)(context.entryPath, "completions", "zsh", "shared.ts");
|
|
26
26
|
},
|
|
@@ -40,7 +40,7 @@ function ZshCompletionsShared() {
|
|
|
40
40
|
] },
|
|
41
41
|
get children() {
|
|
42
42
|
return [
|
|
43
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
43
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core.Spacing, {}),
|
|
44
44
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
45
45
|
"const": true,
|
|
46
46
|
"export": true,
|
|
@@ -257,7 +257,7 @@ fi
|
|
|
257
257
|
\`; `;
|
|
258
258
|
}
|
|
259
259
|
}),
|
|
260
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
260
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core.Spacing, {}),
|
|
261
261
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
262
262
|
"export": true,
|
|
263
263
|
"const": true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zsh-shared.d.cts","names":[],"sources":["../../src/components/zsh-shared.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"zsh-shared.d.cts","names":[],"sources":["../../src/components/zsh-shared.tsx"],"mappings":";;;;iBAiCgB,iDAAoB"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { EXEC_COMMAND } from "../helpers/complete-command.mjs";
|
|
2
2
|
import { CompletionDirective } from "../helpers/completion-directive-constants.mjs";
|
|
3
3
|
import "../helpers/index.mjs";
|
|
4
|
-
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
5
4
|
import { getAppBin } from "@shell-shock/core/plugin-utils";
|
|
5
|
+
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
6
6
|
import { code, computed } from "@alloy-js/core";
|
|
7
7
|
import { VarDeclaration } from "@alloy-js/typescript";
|
|
8
|
-
import { Spacing } from "@
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { Spacing } from "@power-plant/alloy-js/core";
|
|
9
|
+
import { TypescriptFile } from "@power-plant/alloy-js/typescript";
|
|
10
|
+
import { usePowerlines } from "@shell-shock/core/contexts/power-plant";
|
|
11
11
|
import { joinPaths } from "@stryke/path";
|
|
12
12
|
import { snakeCase } from "@stryke/string-format/snake-case";
|
|
13
13
|
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const require_components_bash_config_command = require('./components/bash-config-command.cjs');
|
|
2
|
+
const require_components_bash_script_command = require('./components/bash-script-command.cjs');
|
|
3
|
+
const require_components_bash_shared = require('./components/bash-shared.cjs');
|
|
4
|
+
const require_components_fish_config_command = require('./components/fish-config-command.cjs');
|
|
5
|
+
const require_components_fish_script_command = require('./components/fish-script-command.cjs');
|
|
6
|
+
const require_components_fish_shared = require('./components/fish-shared.cjs');
|
|
7
|
+
const require_components_powershell_config_command = require('./components/powershell-config-command.cjs');
|
|
8
|
+
const require_components_powershell_script_command = require('./components/powershell-script-command.cjs');
|
|
9
|
+
const require_components_powershell_shared = require('./components/powershell-shared.cjs');
|
|
10
|
+
const require_components_zsh_config_command = require('./components/zsh-config-command.cjs');
|
|
11
|
+
const require_components_zsh_script_command = require('./components/zsh-script-command.cjs');
|
|
12
|
+
const require_components_zsh_shared = require('./components/zsh-shared.cjs');
|
|
13
|
+
require('./components/index.cjs');
|
|
14
|
+
let _shell_shock_core_helpers_power_plant = require("@shell-shock/core/helpers/power-plant");
|
|
15
|
+
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
16
|
+
|
|
17
|
+
//#region package.json
|
|
18
|
+
var version = "0.4.31";
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/generator.tsx
|
|
22
|
+
/**
|
|
23
|
+
* Power Plant generator for Shell Shock shell completion commands.
|
|
24
|
+
*
|
|
25
|
+
* @see https://github.com/storm-software/power-plant/tree/main/packages/generators/alloy-js
|
|
26
|
+
*/
|
|
27
|
+
const completionsGenerator = (0, _shell_shock_core_helpers_power_plant.defineCommandGenerator)({
|
|
28
|
+
meta: {
|
|
29
|
+
name: "shell-shock-completions",
|
|
30
|
+
title: "Shell Shock Completions Generator",
|
|
31
|
+
description: "Generates shell completion shared modules and commands from the Shell Shock command tree specification.",
|
|
32
|
+
version,
|
|
33
|
+
tags: [
|
|
34
|
+
"shell-shock",
|
|
35
|
+
"completions",
|
|
36
|
+
"alloy-js"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
generator: async (_commands, options) => {
|
|
40
|
+
await (0, _shell_shock_core_helpers_power_plant.renderCommandTemplate)(options, [
|
|
41
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_bash_shared.BashCompletionsShared, {}),
|
|
42
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_bash_script_command.BashScriptCompletionsCommand, {}),
|
|
43
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_bash_config_command.BashConfigCompletionsCommand, {}),
|
|
44
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_zsh_shared.ZshCompletionsShared, {}),
|
|
45
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_zsh_script_command.ZshScriptCompletionsCommand, {}),
|
|
46
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_zsh_config_command.ZshConfigCompletionsCommand, {}),
|
|
47
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_powershell_shared.PowerShellCompletionsShared, {}),
|
|
48
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_powershell_script_command.PowerShellScriptCompletionsCommand, {}),
|
|
49
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_powershell_config_command.PowerShellConfigCompletionsCommand, {}),
|
|
50
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_fish_shared.FishCompletionsShared, {}),
|
|
51
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_fish_script_command.FishScriptCompletionsCommand, {}),
|
|
52
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_fish_config_command.FishConfigCompletionsCommand, {})
|
|
53
|
+
]);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
//#endregion
|
|
58
|
+
Object.defineProperty(exports, 'completionsGenerator', {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () {
|
|
61
|
+
return completionsGenerator;
|
|
62
|
+
}
|
|
63
|
+
});
|