@shell-shock/plugin-completions 0.2.1 → 0.2.3
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-command.d.mts +2 -2
- package/dist/components/fish-command.d.cts +2 -2
- package/dist/components/fish-command.d.mts +2 -2
- package/dist/components/powershell-command.d.mts +2 -2
- package/dist/components/zsh-command.d.cts +2 -2
- package/dist/index.d.cts +3 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core1 from "@alloy-js/core";
|
|
2
2
|
|
|
3
3
|
//#region src/components/bash-command.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The Bash Completions commands' handler wrapper for the Shell Shock project.
|
|
6
6
|
*/
|
|
7
|
-
declare function BashCompletionsCommand():
|
|
7
|
+
declare function BashCompletionsCommand(): _alloy_js_core1.Children;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { BashCompletionsCommand };
|
|
10
10
|
//# sourceMappingURL=bash-command.d.mts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core2 from "@alloy-js/core";
|
|
2
2
|
|
|
3
3
|
//#region src/components/fish-command.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The Fish Completions commands' handler wrapper for the Shell Shock project.
|
|
6
6
|
*/
|
|
7
|
-
declare function FishCompletionsCommand():
|
|
7
|
+
declare function FishCompletionsCommand(): _alloy_js_core2.Children;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { FishCompletionsCommand };
|
|
10
10
|
//# sourceMappingURL=fish-command.d.cts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
2
2
|
|
|
3
3
|
//#region src/components/fish-command.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The Fish Completions commands' handler wrapper for the Shell Shock project.
|
|
6
6
|
*/
|
|
7
|
-
declare function FishCompletionsCommand():
|
|
7
|
+
declare function FishCompletionsCommand(): _alloy_js_core0.Children;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { FishCompletionsCommand };
|
|
10
10
|
//# sourceMappingURL=fish-command.d.mts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core2 from "@alloy-js/core";
|
|
2
2
|
|
|
3
3
|
//#region src/components/powershell-command.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The PowerShell Completions commands' handler wrapper for the Shell Shock project.
|
|
6
6
|
*/
|
|
7
|
-
declare function PowerShellCompletionsCommand():
|
|
7
|
+
declare function PowerShellCompletionsCommand(): _alloy_js_core2.Children;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PowerShellCompletionsCommand };
|
|
10
10
|
//# sourceMappingURL=powershell-command.d.mts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
2
2
|
|
|
3
3
|
//#region src/components/zsh-command.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The Zsh Completions commands' handler wrapper for the Shell Shock project.
|
|
6
6
|
*/
|
|
7
|
-
declare function ZshCompletionsCommand():
|
|
7
|
+
declare function ZshCompletionsCommand(): _alloy_js_core0.Children;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ZshCompletionsCommand };
|
|
10
10
|
//# sourceMappingURL=zsh-command.d.cts.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SHELL_TYPES, ShellType } from "./types/shell-type.cjs";
|
|
2
|
+
import { CompletionsPluginContext, CompletionsPluginOptions, CompletionsPluginResolvedConfig, CompletionsPluginUserConfig } from "./types/plugin.cjs";
|
|
2
3
|
import { Plugin } from "powerlines";
|
|
3
4
|
|
|
4
5
|
//#region src/index.d.ts
|
|
@@ -8,5 +9,5 @@ import { Plugin } from "powerlines";
|
|
|
8
9
|
*/
|
|
9
10
|
declare const plugin: <TContext extends CompletionsPluginContext = CompletionsPluginContext>(options?: CompletionsPluginOptions) => Plugin<TContext>[];
|
|
10
11
|
//#endregion
|
|
11
|
-
export { plugin as default, plugin };
|
|
12
|
+
export { CompletionsPluginContext, CompletionsPluginOptions, CompletionsPluginResolvedConfig, CompletionsPluginUserConfig, SHELL_TYPES, ShellType, plugin as default, plugin };
|
|
12
13
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAwCA;AACmB,cADN,MACM,EAAA,CAAA,iBAAA,wBAAA,GAA2B,wBAA3B,CAAA,CAAA,OAAA,CAAA,EAER,wBAFQ,EAAA,GAGhB,MAHgB,CAGT,QAHS,CAAA,EAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SHELL_TYPES, ShellType } from "./types/shell-type.mjs";
|
|
2
|
+
import { CompletionsPluginContext, CompletionsPluginOptions, CompletionsPluginResolvedConfig, CompletionsPluginUserConfig } from "./types/plugin.mjs";
|
|
2
3
|
import { Plugin } from "powerlines";
|
|
3
4
|
|
|
4
5
|
//#region src/index.d.ts
|
|
@@ -8,5 +9,5 @@ import { Plugin } from "powerlines";
|
|
|
8
9
|
*/
|
|
9
10
|
declare const plugin: <TContext extends CompletionsPluginContext = CompletionsPluginContext>(options?: CompletionsPluginOptions) => Plugin<TContext>[];
|
|
10
11
|
//#endregion
|
|
11
|
-
export { plugin as default, plugin };
|
|
12
|
+
export { CompletionsPluginContext, CompletionsPluginOptions, CompletionsPluginResolvedConfig, CompletionsPluginUserConfig, SHELL_TYPES, ShellType, plugin as default, plugin };
|
|
12
13
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAwCA;AACmB,cADN,MACM,EAAA,CAAA,iBAAA,wBAAA,GAA2B,wBAA3B,CAAA,CAAA,OAAA,CAAA,EAER,wBAFQ,EAAA,GAGhB,MAHgB,CAGT,QAHS,CAAA,EAAA"}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["render","getAppTitle","relativePath","joinPaths","BashCompletionsCommand","FishCompletionsCommand","PowerShellCompletionsCommand","ZshCompletionsCommand","SHELL_TYPES","plugin","options","name","config","debug","completions","shells","configResolved","inputs","some","input","id","info","push","alias","path","segments","title","description","entry","file","entryPath","isVirtual","includes","commandsPath","prepare","_$createComponent"],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport { getAppTitle } from \"@shell-shock/core/plugin-utils\";\nimport { relativePath } from \"@stryke/path\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport type { Plugin } from \"powerlines\";\nimport {\n BashCompletionsCommand,\n FishCompletionsCommand,\n PowerShellCompletionsCommand,\n ZshCompletionsCommand\n} from \"./components\";\nimport type {\n CompletionsPluginContext,\n CompletionsPluginOptions\n} from \"./types/plugin\";\nimport { SHELL_TYPES } from \"./types/shell-type\";\n\n/**\n * The Completions - Shell Shock plugin to add completion commands to a Shell Shock application.\n */\nexport const plugin = <\n TContext extends CompletionsPluginContext = CompletionsPluginContext\n>(\n options: CompletionsPluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n {\n name: \"shell-shock:completions\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `completions` plugin.\"\n );\n\n return {\n completions: { shells: SHELL_TYPES, ...options }\n };\n },\n configResolved() {\n this.debug(\n \"Adding the CLI completion commands to the application context.\"\n );\n\n this.inputs ??= [];\n if (this.inputs.some(input => input.id === \"completions\")) {\n this.info(\n \"The `completions` command already exists in the commands list. If you would like the completions command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions\",\n name: \"completions\",\n alias: [\"completion\"],\n path: \"completions\",\n segments: [\"completions\"],\n title: \"CLI Completions\",\n description: `Commands for generating shell completion scripts for ${getAppTitle(\n this\n )}.`,\n entry: {\n file: joinPaths(this.entryPath, \"completions\", \"command.ts\")\n },\n isVirtual: true\n });\n }\n\n if (this.config.completions.shells.includes(\"bash\")) {\n if (this.inputs.some(input => input.id === \"completions-bash\")) {\n this.info(\n \"The `completions-bash` command already exists in the commands list. If you would like the completions-bash command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions-bash\",\n name: \"bash\",\n description: `Generate a Bash completion script for the ${getAppTitle(\n this,\n true\n )} command-line interface.`,\n alias: [],\n path: \"completions/bash\",\n segments: [\"completions\", \"bash\"],\n title: \"CLI Completions - Bash Shell\",\n entry: {\n file: joinPaths(\n this.entryPath,\n \"completions\",\n \"bash\",\n \"command.ts\"\n )\n },\n isVirtual: false\n });\n }\n }\n\n if (this.config.completions.shells.includes(\"zsh\")) {\n if (this.inputs.some(input => input.id === \"completions-zsh\")) {\n this.info(\n \"The `completions-zsh` command already exists in the commands list. If you would like the completions-zsh command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions-zsh\",\n name: \"zsh\",\n description: `Generate a Zsh completion script for the ${getAppTitle(\n this,\n true\n )} command-line interface.`,\n alias: [],\n path: \"completions/zsh\",\n segments: [\"completions\", \"zsh\"],\n title: \"CLI Completions - Zsh Shell\",\n entry: {\n file: relativePath(\n this.commandsPath,\n joinPaths(this.entryPath, \"completions\", \"zsh\", \"command.ts\")\n )\n },\n isVirtual: false\n });\n }\n }\n\n if (this.config.completions.shells.includes(\"powershell\")) {\n if (\n this.inputs.some(input => input.id === \"completions-powershell\")\n ) {\n this.info(\n \"The `completions-powershell` command already exists in the commands list. If you would like the completions-powershell command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions-powershell\",\n name: \"powershell\",\n description: `Generate a PowerShell completion script for the ${getAppTitle(\n this,\n true\n )} command-line interface.`,\n alias: [],\n path: \"completions/powershell\",\n segments: [\"completions\", \"powershell\"],\n title: \"CLI Completions - PowerShell\",\n entry: {\n file: relativePath(\n this.commandsPath,\n joinPaths(\n this.entryPath,\n \"completions\",\n \"powershell\",\n \"command.ts\"\n )\n )\n },\n isVirtual: false\n });\n }\n }\n\n if (this.config.completions.shells.includes(\"fish\")) {\n if (this.inputs.some(input => input.id === \"completions-fish\")) {\n this.info(\n \"The `completions-fish` command already exists in the commands list. If you would like the completions-fish command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions-fish\",\n name: \"fish\",\n description: `Generate a Fish completion script for the ${getAppTitle(\n this,\n true\n )} command-line interface.`,\n alias: [],\n path: \"completions/fish\",\n segments: [\"completions\", \"fish\"],\n title: \"CLI Completions - Fish Shell\",\n entry: {\n file: relativePath(\n this.commandsPath,\n joinPaths(this.entryPath, \"completions\", \"fish\", \"command.ts\")\n )\n },\n isVirtual: false\n });\n }\n }\n },\n async prepare() {\n this.debug(\n \"Rendering command handling modules for the Shell Shock `completions` plugin.\"\n );\n\n return render(\n this,\n <>\n <BashCompletionsCommand />\n <ZshCompletionsCommand />\n <PowerShellCompletionsCommand />\n <FishCompletionsCommand />\n </>\n );\n }\n }\n ];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;AAsCA,MAAaS,UAGXC,UAAoC,EAAE,KACf;AACvB,QAAO,CACL;EACEC,MAAM;EACNC,SAAS;AACP,QAAKC,MACH,4EACD;AAED,UAAO,EACLC,aAAa;IAAEC,QAAQP;IAAa,GAAGE;IAAQ,EAChD;;EAEHM,iBAAiB;AACf,QAAKH,MACH,iEACD;AAED,QAAKI,WAAW,EAAE;AAClB,OAAI,KAAKA,OAAOC,MAAKC,UAASA,MAAMC,OAAO,cAAc,CACvD,MAAKC,KACH,gNACD;OAED,MAAKJ,OAAOK,KAAK;IACfF,IAAI;IACJT,MAAM;IACNY,OAAO,CAAC,aAAa;IACrBC,MAAM;IACNC,UAAU,CAAC,cAAc;IACzBC,OAAO;IACPC,aAAa,wDAAwD1B,YACnE,KACD,CAAA;IACD2B,OAAO,EACLC,MAAM1B,YAAU,KAAK2B,WAAW,eAAe,aAAY,EAC5D;IACDC,WAAW;IACZ,CAAC;AAGJ,OAAI,KAAKnB,OAAOE,YAAYC,OAAOiB,SAAS,OAAO,CACjD,KAAI,KAAKf,OAAOC,MAAKC,UAASA,MAAMC,OAAO,mBAAmB,CAC5D,MAAKC,KACH,0NACD;OAED,MAAKJ,OAAOK,KAAK;IACfF,IAAI;IACJT,MAAM;IACNgB,aAAa,6CAA6C1B,YACxD,MACA,KACD,CAAA;IACDsB,OAAO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,YACxD,MACA,KACD,CAAA;IACDsB,OAAO,EAAE;IACTC,MAAM;IACNC,UAAU,CAAC,eAAe,OAAO;IACjCC,OAAO;IACPE,OAAO,EACLC,MAAM3B,aACJ,KAAK+B,cACL9B,YAAU,KAAK2B,WAAW,eAAe,QAAQ,aACnD,CAAA,EACD;IACDC,WAAW;IACZ,CAAC;;EAIR,MAAMG,UAAU;AACd,QAAKrB,MACH,+EACD;AAED,UAAOb,OACL,MAAI;IAAAmC,gBAED/B,wBAAsB,EAAA,CAAA;IAAA+B,gBACtB5B,uBAAqB,EAAA,CAAA;IAAA4B,gBACrB7B,8BAA4B,EAAA,CAAA;IAAA6B,gBAC5B9B,wBAAsB,EAAA,CAAA;IAE3B,CAAC;;EAEJ,CACF;;AAGH,kBAAeI"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["render","getAppTitle","relativePath","joinPaths","BashCompletionsCommand","FishCompletionsCommand","PowerShellCompletionsCommand","ZshCompletionsCommand","SHELL_TYPES","plugin","options","name","config","debug","completions","shells","configResolved","inputs","some","input","id","info","push","alias","path","segments","title","description","entry","file","entryPath","isVirtual","includes","commandsPath","prepare","_$createComponent"],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport { getAppTitle } from \"@shell-shock/core/plugin-utils\";\nimport { relativePath } from \"@stryke/path\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport type { Plugin } from \"powerlines\";\nimport {\n BashCompletionsCommand,\n FishCompletionsCommand,\n PowerShellCompletionsCommand,\n ZshCompletionsCommand\n} from \"./components\";\nimport type {\n CompletionsPluginContext,\n CompletionsPluginOptions\n} from \"./types/plugin\";\nimport { SHELL_TYPES } from \"./types/shell-type\";\n\nexport type * from \"./types\";\n\n/**\n * The Completions - Shell Shock plugin to add completion commands to a Shell Shock application.\n */\nexport const plugin = <\n TContext extends CompletionsPluginContext = CompletionsPluginContext\n>(\n options: CompletionsPluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n {\n name: \"shell-shock:completions\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `completions` plugin.\"\n );\n\n return {\n completions: { shells: SHELL_TYPES, ...options }\n };\n },\n configResolved() {\n this.debug(\n \"Adding the CLI completion commands to the application context.\"\n );\n\n this.inputs ??= [];\n if (this.inputs.some(input => input.id === \"completions\")) {\n this.info(\n \"The `completions` command already exists in the commands list. If you would like the completions command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions\",\n name: \"completions\",\n alias: [\"completion\"],\n path: \"completions\",\n segments: [\"completions\"],\n title: \"CLI Completions\",\n description: `Commands for generating shell completion scripts for ${getAppTitle(\n this\n )}.`,\n entry: {\n file: joinPaths(this.entryPath, \"completions\", \"command.ts\")\n },\n isVirtual: true\n });\n }\n\n if (this.config.completions.shells.includes(\"bash\")) {\n if (this.inputs.some(input => input.id === \"completions-bash\")) {\n this.info(\n \"The `completions-bash` command already exists in the commands list. If you would like the completions-bash command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions-bash\",\n name: \"bash\",\n description: `Generate a Bash completion script for the ${getAppTitle(\n this,\n true\n )} command-line interface.`,\n alias: [],\n path: \"completions/bash\",\n segments: [\"completions\", \"bash\"],\n title: \"CLI Completions - Bash Shell\",\n entry: {\n file: joinPaths(\n this.entryPath,\n \"completions\",\n \"bash\",\n \"command.ts\"\n )\n },\n isVirtual: false\n });\n }\n }\n\n if (this.config.completions.shells.includes(\"zsh\")) {\n if (this.inputs.some(input => input.id === \"completions-zsh\")) {\n this.info(\n \"The `completions-zsh` command already exists in the commands list. If you would like the completions-zsh command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions-zsh\",\n name: \"zsh\",\n description: `Generate a Zsh completion script for the ${getAppTitle(\n this,\n true\n )} command-line interface.`,\n alias: [],\n path: \"completions/zsh\",\n segments: [\"completions\", \"zsh\"],\n title: \"CLI Completions - Zsh Shell\",\n entry: {\n file: relativePath(\n this.commandsPath,\n joinPaths(this.entryPath, \"completions\", \"zsh\", \"command.ts\")\n )\n },\n isVirtual: false\n });\n }\n }\n\n if (this.config.completions.shells.includes(\"powershell\")) {\n if (\n this.inputs.some(input => input.id === \"completions-powershell\")\n ) {\n this.info(\n \"The `completions-powershell` command already exists in the commands list. If you would like the completions-powershell command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions-powershell\",\n name: \"powershell\",\n description: `Generate a PowerShell completion script for the ${getAppTitle(\n this,\n true\n )} command-line interface.`,\n alias: [],\n path: \"completions/powershell\",\n segments: [\"completions\", \"powershell\"],\n title: \"CLI Completions - PowerShell\",\n entry: {\n file: relativePath(\n this.commandsPath,\n joinPaths(\n this.entryPath,\n \"completions\",\n \"powershell\",\n \"command.ts\"\n )\n )\n },\n isVirtual: false\n });\n }\n }\n\n if (this.config.completions.shells.includes(\"fish\")) {\n if (this.inputs.some(input => input.id === \"completions-fish\")) {\n this.info(\n \"The `completions-fish` command already exists in the commands list. If you would like the completions-fish command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions-fish\",\n name: \"fish\",\n description: `Generate a Fish completion script for the ${getAppTitle(\n this,\n true\n )} command-line interface.`,\n alias: [],\n path: \"completions/fish\",\n segments: [\"completions\", \"fish\"],\n title: \"CLI Completions - Fish Shell\",\n entry: {\n file: relativePath(\n this.commandsPath,\n joinPaths(this.entryPath, \"completions\", \"fish\", \"command.ts\")\n )\n },\n isVirtual: false\n });\n }\n }\n },\n async prepare() {\n this.debug(\n \"Rendering command handling modules for the Shell Shock `completions` plugin.\"\n );\n\n return render(\n this,\n <>\n <BashCompletionsCommand />\n <ZshCompletionsCommand />\n <PowerShellCompletionsCommand />\n <FishCompletionsCommand />\n </>\n );\n }\n }\n ];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;AAwCA,MAAaS,UAGXC,UAAoC,EAAE,KACf;AACvB,QAAO,CACL;EACEC,MAAM;EACNC,SAAS;AACP,QAAKC,MACH,4EACD;AAED,UAAO,EACLC,aAAa;IAAEC,QAAQP;IAAa,GAAGE;IAAQ,EAChD;;EAEHM,iBAAiB;AACf,QAAKH,MACH,iEACD;AAED,QAAKI,WAAW,EAAE;AAClB,OAAI,KAAKA,OAAOC,MAAKC,UAASA,MAAMC,OAAO,cAAc,CACvD,MAAKC,KACH,gNACD;OAED,MAAKJ,OAAOK,KAAK;IACfF,IAAI;IACJT,MAAM;IACNY,OAAO,CAAC,aAAa;IACrBC,MAAM;IACNC,UAAU,CAAC,cAAc;IACzBC,OAAO;IACPC,aAAa,wDAAwD1B,YACnE,KACD,CAAA;IACD2B,OAAO,EACLC,MAAM1B,YAAU,KAAK2B,WAAW,eAAe,aAAY,EAC5D;IACDC,WAAW;IACZ,CAAC;AAGJ,OAAI,KAAKnB,OAAOE,YAAYC,OAAOiB,SAAS,OAAO,CACjD,KAAI,KAAKf,OAAOC,MAAKC,UAASA,MAAMC,OAAO,mBAAmB,CAC5D,MAAKC,KACH,0NACD;OAED,MAAKJ,OAAOK,KAAK;IACfF,IAAI;IACJT,MAAM;IACNgB,aAAa,6CAA6C1B,YACxD,MACA,KACD,CAAA;IACDsB,OAAO,EAAE;IACTC,MAAM;IACNC,UAAU,CAAC,eAAe,OAAO;IACjCC,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NC,UAAU,CAAC,eAAe,OAAO;IACjCC,OAAO;IACPE,OAAO,EACLC,MAAM3B,aACJ,KAAK+B,cACL9B,YAAU,KAAK2B,WAAW,eAAe,QAAQ,aACnD,CAAA,EACD;IACDC,WAAW;IACZ,CAAC;;EAIR,MAAMG,UAAU;AACd,QAAKrB,MACH,+EACD;AAED,UAAOb,OACL,MAAI;IAAAmC,gBAED/B,wBAAsB,EAAA,CAAA;IAAA+B,gBACtB5B,uBAAqB,EAAA,CAAA;IAAA4B,gBACrB7B,8BAA4B,EAAA,CAAA;IAAA6B,gBAC5B9B,wBAAsB,EAAA,CAAA;IAE3B,CAAC;;EAEJ,CACF;;AAGH,kBAAeI"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shell-shock/plugin-completions",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Shell Shock plugin to generate source code given a list design tokens.",
|
|
6
6
|
"repository": {
|
|
@@ -224,16 +224,16 @@
|
|
|
224
224
|
"dependencies": {
|
|
225
225
|
"@alloy-js/core": "0.23.0-dev.8",
|
|
226
226
|
"@alloy-js/typescript": "0.23.0-dev.4",
|
|
227
|
-
"@powerlines/deepkit": "^0.6.
|
|
228
|
-
"@powerlines/plugin-alloy": "^0.
|
|
229
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
230
|
-
"@shell-shock/core": "^0.
|
|
231
|
-
"@stryke/path": "^0.26.
|
|
232
|
-
"@stryke/string-format": "^0.14.
|
|
233
|
-
"powerlines": "^0.39.
|
|
227
|
+
"@powerlines/deepkit": "^0.6.90",
|
|
228
|
+
"@powerlines/plugin-alloy": "^0.24.2",
|
|
229
|
+
"@powerlines/plugin-plugin": "^0.12.262",
|
|
230
|
+
"@shell-shock/core": "^0.12.0",
|
|
231
|
+
"@stryke/path": "^0.26.12",
|
|
232
|
+
"@stryke/string-format": "^0.14.8",
|
|
233
|
+
"powerlines": "^0.39.19"
|
|
234
234
|
},
|
|
235
235
|
"devDependencies": {
|
|
236
|
-
"@powerlines/plugin-deepkit": "^0.11.
|
|
236
|
+
"@powerlines/plugin-deepkit": "^0.11.190",
|
|
237
237
|
"@types/node": "^25.3.3"
|
|
238
238
|
},
|
|
239
239
|
"publishConfig": {
|
|
@@ -251,5 +251,5 @@
|
|
|
251
251
|
"./package.json": "./package.json"
|
|
252
252
|
}
|
|
253
253
|
},
|
|
254
|
-
"gitHead": "
|
|
254
|
+
"gitHead": "c38d304433a296936fb8ca58aa138a0039918931"
|
|
255
255
|
}
|