function executeCommandAndHandleResult()

in Tasks/codepush-release-cordova/codepush-release-cordova.js [39:52]


function executeCommandAndHandleResult(cmd, positionArgs, optionFlags) {
    var command = buildCommand(cmd, positionArgs, optionFlags);

    tl.debug("Attempting execution of command: " + command);
    try {
        var result = execSync(command, { stdio: 'inherit' });
    } catch (e) {
        ensureLoggedOut();
        tl.setResult(e.status, "Command failed: " + cmd);
        throw e;
    }

    return result;
}