From ea018a8cc9694bb028dfeaea56724fae0dab6670 Mon Sep 17 00:00:00 2001 From: Artur Stolear Date: Mon, 18 Nov 2024 02:38:32 +0100 Subject: [PATCH] w --- dist/tools/cli.mjs | 5 ++--- dist/tools/cli.mjs.map | 2 +- src/tools/cli.ts | 6 +++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/dist/tools/cli.mjs b/dist/tools/cli.mjs index 529c263d0..f03ed6564 100644 --- a/dist/tools/cli.mjs +++ b/dist/tools/cli.mjs @@ -1,6 +1,5 @@ -import { parseCliArgs, getToolRunner } from './lib.mjs'; +import { parseCliArgs, run } from './lib.mjs'; const { agent, tool, command } = parseCliArgs(); -const runner = await getToolRunner(agent, tool); -await runner.run(command); +await run(agent, tool, command); //# sourceMappingURL=cli.mjs.map diff --git a/dist/tools/cli.mjs.map b/dist/tools/cli.mjs.map index 67b162228..74aa92080 100644 --- a/dist/tools/cli.mjs.map +++ b/dist/tools/cli.mjs.map @@ -1 +1 @@ -{"version":3,"file":"cli.mjs","sources":["../../src/tools/cli.ts"],"sourcesContent":["import { getToolRunner, parseCliArgs } from '@lib'\n\nconst { agent, tool, command } = parseCliArgs()\nconst runner = await getToolRunner(agent, tool)\nawait runner.run(command)\n"],"names":[],"mappings":";;AAEA,MAAM,EAAE,KAAA,EAAO,IAAM,EAAA,OAAA,KAAY,YAAa,EAAA,CAAA;AAC9C,MAAM,MAAS,GAAA,MAAM,aAAc,CAAA,KAAA,EAAO,IAAI,CAAA,CAAA;AAC9C,MAAM,MAAA,CAAO,IAAI,OAAO,CAAA"} \ No newline at end of file +{"version":3,"file":"cli.mjs","sources":["../../src/tools/cli.ts"],"sourcesContent":["import { parseCliArgs, run } from '@lib'\nimport type { Commands } from '@tools/gitversion'\n\nconst { agent, tool, command } = parseCliArgs()\nawait run(agent, tool, command as Commands)\n"],"names":[],"mappings":";;AAGA,MAAM,EAAE,KAAA,EAAO,IAAM,EAAA,OAAA,KAAY,YAAa,EAAA,CAAA;AAC9C,MAAM,GAAA,CAAI,KAAO,EAAA,IAAA,EAAM,OAAmB,CAAA"} \ No newline at end of file diff --git a/src/tools/cli.ts b/src/tools/cli.ts index 83c3bd837..b10a6db6e 100644 --- a/src/tools/cli.ts +++ b/src/tools/cli.ts @@ -1,5 +1,5 @@ -import { getToolRunner, parseCliArgs } from '@lib' +import { parseCliArgs, run } from '@lib' +import { type Commands } from '@tools/gitversion' const { agent, tool, command } = parseCliArgs() -const runner = await getToolRunner(agent, tool) -await runner.run(command) +await run(agent, tool, command as Commands)