@shell-shock/plugin-completions 0.4.30 → 0.4.31
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-CNnyw01h.mjs +59 -0
- package/dist/generator-CNnyw01h.mjs.map +1 -0
- package/dist/generator-Co07UPSX.cjs +63 -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,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/bash-config-command.tsx
|
|
@@ -14,8 +14,8 @@ let _stryke_path = require("@stryke/path");
|
|
|
14
14
|
* The Bash Completions - Configuration command's handler wrapper for the Shell Shock project.
|
|
15
15
|
*/
|
|
16
16
|
function BashConfigCompletionsCommand() {
|
|
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", "bash", "config", "command.ts");
|
|
21
21
|
},
|
|
@@ -35,27 +35,27 @@ function BashConfigCompletionsCommand() {
|
|
|
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 Bash Completions - Configuration command." }),
|
|
39
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.InterfaceDeclaration, {
|
|
40
40
|
"export": true,
|
|
41
41
|
name: "BashConfigCompletionsOptions",
|
|
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 bash 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 BashConfigCompletionsCommand() {
|
|
|
81
81
|
type: "string",
|
|
82
82
|
initializer: _alloy_js_core.code` path.includes(".") ? path : join(path, ".bashrc");`
|
|
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":"bash-config-command.d.cts","names":[],"sources":["../../src/components/bash-config-command.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bash-config-command.d.cts","names":[],"sources":["../../src/components/bash-config-command.tsx"],"mappings":";;;;iBA2CgB,yDAA4B"}
|
|
@@ -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/bash-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/bash-script-command.tsx
|
|
@@ -14,9 +14,9 @@ let _stryke_path = require("@stryke/path");
|
|
|
14
14
|
* The Bash Completions - Script command's handler wrapper for the Shell Shock project.
|
|
15
15
|
*/
|
|
16
16
|
function BashScriptCompletionsCommand() {
|
|
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", "bash", "script", "command.ts");
|
|
22
22
|
},
|
|
@@ -35,27 +35,27 @@ function BashScriptCompletionsCommand() {
|
|
|
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 Bash Completions - Script command." }),
|
|
39
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.InterfaceDeclaration, {
|
|
40
40
|
"export": true,
|
|
41
41
|
name: "BashScriptCompletionsOptions",
|
|
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 bash 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":"bash-script-command.d.cts","names":[],"sources":["../../src/components/bash-script-command.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bash-script-command.d.cts","names":[],"sources":["../../src/components/bash-script-command.tsx"],"mappings":";;;;iBA2CgB,yDAA4B"}
|
|
@@ -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/bash-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_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 Bash Completions generation for the Shell Shock project.
|
|
18
18
|
*/
|
|
19
19
|
function BashCompletionsShared() {
|
|
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", "bash", "shared.ts");
|
|
26
26
|
},
|
|
@@ -40,7 +40,7 @@ function BashCompletionsShared() {
|
|
|
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
|
"export": true,
|
|
46
46
|
"const": true,
|
|
@@ -148,7 +148,7 @@ complete -F __${name.value}_complete ${bin.value}
|
|
|
148
148
|
\`; `;
|
|
149
149
|
}
|
|
150
150
|
}),
|
|
151
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
151
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core.Spacing, {}),
|
|
152
152
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
153
153
|
"export": true,
|
|
154
154
|
"const": true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bash-shared.d.cts","names":[],"sources":["../../src/components/bash-shared.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bash-shared.d.cts","names":[],"sources":["../../src/components/bash-shared.tsx"],"mappings":";;;;iBAiCgB,kDAAqB"}
|
|
@@ -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
|
|
|
@@ -1,21 +1,21 @@
|
|
|
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
|
-
let
|
|
10
|
+
let _power_plant_alloy_js_typescript_components_typescript_file = require("@power-plant/alloy-js/typescript/components/typescript-file");
|
|
11
11
|
|
|
12
12
|
//#region src/components/fish-config-command.tsx
|
|
13
13
|
/**
|
|
14
14
|
* The Fish Completions - Configuration command's handler wrapper for the Shell Shock project.
|
|
15
15
|
*/
|
|
16
16
|
function FishConfigCompletionsCommand() {
|
|
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_components_typescript_file.TypescriptFile, {
|
|
19
19
|
get path() {
|
|
20
20
|
return (0, _stryke_path.joinPaths)(context.entryPath, "completions", "fish", "config", "command.ts");
|
|
21
21
|
},
|
|
@@ -35,27 +35,27 @@ function FishConfigCompletionsCommand() {
|
|
|
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.TSDoc, { heading: "Options for the Fish Completions - Configuration command." }),
|
|
39
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript.InterfaceDeclaration, {
|
|
40
40
|
"export": true,
|
|
41
41
|
name: "FishConfigCompletionsOptions",
|
|
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.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.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.TSDoc, { heading: "Handler logic for the \\`completions fish 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 FishConfigCompletionsCommand() {
|
|
|
81
81
|
type: "string",
|
|
82
82
|
initializer: _alloy_js_core.code` path.includes(".") ? path : join(path, ".config", "fish", "config.fish");`
|
|
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":"fish-config-command.d.cts","names":[],"sources":["../../src/components/fish-config-command.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fish-config-command.d.cts","names":[],"sources":["../../src/components/fish-config-command.tsx"],"mappings":";;;;iBAyCgB,yDAA4B"}
|
|
@@ -1,12 +1,12 @@
|
|
|
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 {
|
|
5
|
+
import { Spacing } from "@power-plant/alloy-js/core";
|
|
6
|
+
import { InterfaceDeclaration as InterfaceDeclaration$1, InterfaceMember, TSDoc, TSDocDefaultValue } from "@power-plant/alloy-js/typescript";
|
|
7
|
+
import { usePowerlines } from "@shell-shock/core/contexts/power-plant";
|
|
8
8
|
import { joinPaths } from "@stryke/path";
|
|
9
|
-
import { TypescriptFile as TypescriptFile$1 } from "@
|
|
9
|
+
import { TypescriptFile as TypescriptFile$1 } from "@power-plant/alloy-js/typescript/components/typescript-file";
|
|
10
10
|
|
|
11
11
|
//#region src/components/fish-config-command.tsx
|
|
12
12
|
/**
|
|
@@ -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/fish-script-command.tsx
|
|
@@ -14,9 +14,9 @@ let _stryke_path = require("@stryke/path");
|
|
|
14
14
|
* The Fish Completions - Script command's handler wrapper for the Shell Shock project.
|
|
15
15
|
*/
|
|
16
16
|
function FishScriptCompletionsCommand() {
|
|
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", "fish", "script", "command.ts");
|
|
22
22
|
},
|
|
@@ -35,27 +35,27 @@ function FishScriptCompletionsCommand() {
|
|
|
35
35
|
] },
|
|
36
36
|
get children() {
|
|
37
37
|
return [
|
|
38
|
-
(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 Fish Completions - Script command." }),
|
|
39
39
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
|
|
40
40
|
"export": true,
|
|
41
41
|
name: "FishScriptCompletionsOptions",
|
|
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 fish 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":"fish-script-command.d.cts","names":[],"sources":["../../src/components/fish-script-command.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fish-script-command.d.cts","names":[],"sources":["../../src/components/fish-script-command.tsx"],"mappings":";;;;iBA2CgB,yDAA4B"}
|
|
@@ -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, InterfaceDeclaration, 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 { 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/fish-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_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 Fish Completions generation for the Shell Shock project.
|
|
18
18
|
*/
|
|
19
19
|
function FishCompletionsShared() {
|
|
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", "fish", "shared.ts");
|
|
26
26
|
},
|
|
@@ -40,7 +40,7 @@ function FishCompletionsShared() {
|
|
|
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,
|
|
@@ -279,7 +279,7 @@ complete -k -c ${bin.value} -n '__${name.value}_requires_order_preservation && _
|
|
|
279
279
|
\`; `;
|
|
280
280
|
}
|
|
281
281
|
}),
|
|
282
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
282
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core.Spacing, {}),
|
|
283
283
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
284
284
|
"export": true,
|
|
285
285
|
"const": true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fish-shared.d.cts","names":[],"sources":["../../src/components/fish-shared.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fish-shared.d.cts","names":[],"sources":["../../src/components/fish-shared.tsx"],"mappings":";;;;iBAiCgB,kDAAqB"}
|
|
@@ -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
|
|