|
|
@@ -4,7 +4,9 @@ |
|
|
|
"use strict"; |
|
|
|
|
|
|
|
var __g = require('global-this'); |
|
|
|
|
|
|
|
var ENV = Object.assign({}, process.env); // Shallow clone so we can set values and reuse for reshelling spawns. |
|
|
|
__g.env = ENV |
|
|
|
ENV.NODE_ENV = (ENV.NODE_ENV && ENV.NODE_ENV.trim()) || 'development' |
|
|
|
const fs = require('fs') |
|
|
|
var path = require('path'); |
|
|
|
var utils = require('bbhverse'); |
|
|
@@ -2077,14 +2079,20 @@ shell_verse.acquireElevationState().then((isElevated) => { |
|
|
|
var cmds = { |
|
|
|
remote : { |
|
|
|
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
|
, clioverrides, { cmd : processedArgs._.slice(0, 2).join(' '), runchoice : 'c' }) } |
|
|
|
, { cmd : processedArgs._.slice(0, 2).join(' '), runchoice : 'c' }) } |
|
|
|
, noprerequisites : true |
|
|
|
, independentcmd : true |
|
|
|
} |
|
|
|
, start : { |
|
|
|
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
|
, { cmd : 'start', runchoice : 'c' |
|
|
|
, node_env : ENV.NODE_ENV, root : ENV.wd, instanceType : ENV.NODE_ENV |
|
|
|
})} |
|
|
|
} |
|
|
|
, 'remote refresh' : { |
|
|
|
// return a interpreted set of arguments for this cmd run context. |
|
|
|
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
|
, clioverrides, { cmd : 'remote refresh', runchoice : 'c' }) } |
|
|
|
, { cmd : 'remote refresh', runchoice : 'c' }) } |
|
|
|
, noprerequisites : true |
|
|
|
, independentcmd : true |
|
|
|
, requires : [ generateDependencies ] |
|
|
@@ -2092,7 +2100,7 @@ shell_verse.acquireElevationState().then((isElevated) => { |
|
|
|
, 'remote set-url' : { |
|
|
|
// return a interpreted set of arguments for this cmd run context. |
|
|
|
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
|
, clioverrides, { cmd : 'remote set-url', runchoice : 'c' }) } |
|
|
|
, { cmd : 'remote set-url', runchoice : 'c' }) } |
|
|
|
, noprerequisites : true |
|
|
|
, independentcmd : true |
|
|
|
, requires : [ generateDependencies ] |
|
|
@@ -2100,7 +2108,7 @@ shell_verse.acquireElevationState().then((isElevated) => { |
|
|
|
, 'remote add' : { |
|
|
|
// return a interpreted set of arguments for this cmd run context. |
|
|
|
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
|
, clioverrides, { cmd : 'remote add', runchoice : 'c' }) } |
|
|
|
, { cmd : 'remote add', runchoice : 'c' }) } |
|
|
|
, noprerequisites : true |
|
|
|
, independentcmd : true |
|
|
|
, requires : [ generateDependencies ] |
|
|
@@ -2108,7 +2116,7 @@ shell_verse.acquireElevationState().then((isElevated) => { |
|
|
|
, 'remote remove' : { |
|
|
|
// return a interpreted set of arguments for this cmd run context. |
|
|
|
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
|
, clioverrides, { cmd : 'remote remove', runchoice : 'c' }) } |
|
|
|
, { cmd : 'remote remove', runchoice : 'c' }) } |
|
|
|
, noprerequisites : true |
|
|
|
, independentcmd : true |
|
|
|
} |