function execute(cmd, cwd) {
    return __awaiter(this, void 0, void 0, function* () {
        output = "";
        yield exec_1.exec(cmd, [], {
            cwd,
            listeners: {
                stdout
            }
        });
        return Promise.resolve(output);
    });
}
/** Wrapper around the GitHub toolkit exec command which returns the output.
 * Also allows you to easily toggle the current working directory.
 * @param {String} cmd = The command to execute.
 * @param {String} cwd - The current working directory.
 * @returns {Promise} - The output from the command.
 */
Wrapper around the GitHub toolkit exec command which returns the output.
Also allows you to easily toggle the current working directory.
@param {String} cmd = The command to execute.
@param {String} cwd - The current working directory.
@returns {Promise} - The output from the command.
Wrapper around the GitHub toolkit exec command which returns the output . Also allows you to easily toggle the current working directory . @param { String } cmd = The command to execute . @param { String } cwd - The current working directory . @returns { Promise } - The output from the command .
function execute(cmd, cwd) {
    return __awaiter(this, void 0, void 0, function* () {
        output = "";
        yield exec_1.exec(cmd, [], {
            cwd,
            listeners: {
                stdout
            }
        });
        return Promise.resolve(output);
    });
}
function execute ( cmd , cwd ) { return __awaiter ( this , void 0 , void 0 , function * ( ) { output = "" ; yield exec_1 . exec ( cmd , [ ] , { cwd , listeners : { stdout } } ) ; return Promise . resolve ( output ) ; } ) ; }
Wrapper around the GitHub toolkit exec command which returns the output.
Wrapper around the GitHub toolkit exec command which returns the output .