}); | }); | ||||
} | } | ||||
child.on('close', (code) => { | child.on('close', (code) => { | ||||
var logEntry = { code } | |||||
var logEntry = { code, success } | |||||
if(+code !== 0 || opts.haserrors) { success = false; logEntry = { result: `${opts.title} exited with code ${code}`, success, code }}; | if(+code !== 0 || opts.haserrors) { success = false; logEntry = { result: `${opts.title} exited with code ${code}`, success, code }}; | ||||
if(opts.stdio !== 'ignore') { | if(opts.stdio !== 'ignore') { | ||||
logEntry = { result: `${opts.title} exited with code ${code}`, messages, code } | logEntry = { result: `${opts.title} exited with code ${code}`, messages, code } |
, 'is-git-repo': (dir) => { | , 'is-git-repo': (dir) => { | ||||
return nodeShellExec('git', ['-C', dir.name, 'rev-parse'], { stdio: 'ignore' }) | return nodeShellExec('git', ['-C', dir.name, 'rev-parse'], { stdio: 'ignore' }) | ||||
} | } | ||||
// git remote equivalents... | |||||
// git branch --set-upstream-to=elixir-unc/master master | |||||
// git push --set-upstream elixir-unc branch.. | |||||
, 'set-url': (remotename, url) => { | , 'set-url': (remotename, url) => { | ||||
var pushable = processedArgs.pushable || false; | var pushable = processedArgs.pushable || false; | ||||
remotename = remotename || processedArgs._[1] | remotename = remotename || processedArgs._[1] |