|
|
|
|
|
|
|
|
interpret() { |
|
|
interpret() { |
|
|
var interpreted = {} |
|
|
var interpreted = {} |
|
|
// Non custom command has universal positiona args. |
|
|
// Non custom command has universal positiona args. |
|
|
interpreted.instanceName = processedArgs._[1] ? processedArgs._[1] : null; |
|
|
|
|
|
|
|
|
processedArgs._[1] ? interpreted.instanceName = processedArgs._[1] : null; |
|
|
interpreted.runchoice = processedArgs._[0] || selectedinstance.runchoice; |
|
|
interpreted.runchoice = processedArgs._[0] || selectedinstance.runchoice; |
|
|
// return clioverrides |
|
|
// return clioverrides |
|
|
// cmds[cmd] = { |
|
|
// cmds[cmd] = { |
|
|
|
|
|
|
|
|
elevatedpulltasks = function() { |
|
|
elevatedpulltasks = function() { |
|
|
var eBatch = [] |
|
|
var eBatch = [] |
|
|
def.elevated.map((def) => getPullTask(def, null, null, null, eBatch)) |
|
|
def.elevated.map((def) => getPullTask(def, null, null, null, eBatch)) |
|
|
|
|
|
if(eBatch.length<1) return Promise.resolve(true); |
|
|
eBatch[0].processedArgs = processedArgs |
|
|
eBatch[0].processedArgs = processedArgs |
|
|
return shell_verse.runElevatedBatch(eBatch).then(() => { |
|
|
return shell_verse.runElevatedBatch(eBatch).then(() => { |
|
|
return true; |
|
|
return true; |