boats
Version:
Beautiful Open / Async Template System - Write less yaml with BOATS and Nunjucks.
14 lines (13 loc) • 579 B
TypeScript
/**
* Runs a shell command with given arguments in an array
* @param {string} program - The string of the command, eg ln
* @param {array} args - Array of string options to pass to the program eg ['-s', '/file/path/to/link', 'symlink/path']
* @param {boolean} [verbose] - Default false, when true console logs all output
* @return {Promise<unknown>}
*/
interface CommandRunResolve {
outputString: string;
outputErrorString: string;
}
declare const _default: (program: string, args?: string[], quiet?: boolean) => Promise<CommandRunResolve>;
export default _default;