async function runCommand(command, args) {
    return (await execa_1.default(command, [...args])).stdout
        .trim()
        .split('\n')
        .filter((line) => line !== '');
}
/**
 * Executes a shell command in a child process and returns what it wrote to
 * stdout, or rejects if the process exited with an error.
 *
 * @param command - The command to run, e.g. "git".
 * @param args - The arguments to the command.
 * @returns An array of the non-empty lines returned by the command.
 */
Executes a shell command in a child process and returns what it wrote to
stdout, or rejects if the process exited with an error.

@param command - The command to run, e.g. "git".
@param args - The arguments to the command.
@returns An array of the non-empty lines returned by the command.
Executes a shell command in a child process and returns what it wrote to stdout or rejects if the process exited with an error . @param command - The command to run e . g . " git " . @param args - The arguments to the command . @returns An array of the non - empty lines returned by the command .
async function runCommand(command, args) {
    return (await execa_1.default(command, [...args])).stdout
        .trim()
        .split('\n')
        .filter((line) => line !== '');
}
async function runCommand ( command , args ) { return ( await execa_1 . default ( command , [ ... args ] ) ) . stdout . trim ( ) . split ( '\n' ) . filter ( ( line ) => line !== '' ) ; }
Executes a shell command in a child process and returns what it wrote to
 stdout, or rejects if the process exited with an error.
Executes a shell command in a child process and returns what it wrote to stdout or rejects if the process exited with an error .