diff --git a/src/commandMorph/command-morph.interface.ts b/src/commandMorph/command-morph.interface.ts deleted file mode 100644 index 484762b..0000000 --- a/src/commandMorph/command-morph.interface.ts +++ /dev/null @@ -1,3 +0,0 @@ -export enum CommandMorph { - npm -} \ No newline at end of file diff --git a/src/commandMorph/commandMorph.ts b/src/commandMorph/commandMorph.ts deleted file mode 100644 index 3a8e984..0000000 --- a/src/commandMorph/commandMorph.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { npmCommandMorph } from "src/npm/npm-command-morph"; -import { CommandMorph } from "./command-morph.interface"; - -export function morphCommand(commandTool: CommandMorph, commandText: string): any { - switch(commandTool) { - case CommandMorph.npm: - return npmCommandMorph(commandText); - } -} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 1decd97..e73f0cb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1,2 @@ // export { Blah as default } from './lib' +export { morphCommand } from "./command-morph/command-morph"; \ No newline at end of file diff --git a/src/utils/command-search/command-search.ts b/src/utils/command-search/command-search.ts index c19d5cb..7d47d3f 100644 --- a/src/utils/command-search/command-search.ts +++ b/src/utils/command-search/command-search.ts @@ -1,5 +1,5 @@ -import { NpmCommandMorph } from "src/npm/interfaces/npm-command-morph.interface"; -import { CommandMorph } from "../command-morph/command-morph.interface"; +import { NpmCommandMorph } from "../../npm/interfaces/npm-command-morph.interface"; +import { CommandMorph } from "../../command-morph/command-morph.interface"; export function getFirstWordOfCommand(commandText: string): CommandMorph { const words = commandText.trim().split(/\s+/);