outers
Version:
outers - a all in one package for your day to day use
12 lines (11 loc) • 599 B
TypeScript
/// <reference types="node" />
import { SpawnOptions } from "node:child_process";
import { CommandResult } from "../Config/Interfaces/command/spawn.interface";
/**
* Executes a command with the given arguments and options.
* @param command - The command to execute.
* @param args - The arguments to pass to the command.
* @param options - The options for executing the command.
* @returns A promise that resolves to the command result, containing the output and error.
*/
export default function executeCommand(command: string, args: string[], options?: SpawnOptions): Promise<CommandResult>;