dax
Version:
Cross platform shell tools inspired by zx.
14 lines • 694 B
TypeScript
import type { CommandHandler } from "../commandHandler.js";
/** Options for {@link createExecutableCommand}. */
export interface CreateExecutableCommandOptions {
/** Arguments to prepend to the arguments provided when invoking the command. */
args?: string[];
}
/**
* Creates a new command that runs the executable at the specified path.
* @param resolvedPath A fully resolved path.
* @param options Additional options for the command.
* @returns Command handler that can be registered in a `CommandBuilder`.
*/
export declare function createExecutableCommand(resolvedPath: string, options?: CreateExecutableCommandOptions): CommandHandler;
//# sourceMappingURL=executable.d.ts.map