Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Schniz/cmd-ts. 💻 A type-driven command line argument parser cmd-ts.now.sh
Something went wrong. Try again.
123456789101112131415161718192021import { type ExecaReturnValue, execa } from "execa";
export function app( scriptPath: string,): (args: string[]) => Promise<ExecaReturnValue> { return async (args) => { const result = await execa( require.resolve("tsx/cli"), [scriptPath, ...args], { all: true, reject: false, env: { FORCE_COLOR: "true", }, }, ); return result; };}