|
|
|
|
|
|
|
|
"use strict"; |
|
|
"use strict"; |
|
|
|
|
|
|
|
|
var __g = require('global-this'); |
|
|
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') |
|
|
const fs = require('fs') |
|
|
var path = require('path'); |
|
|
var path = require('path'); |
|
|
var utils = require('bbhverse'); |
|
|
var utils = require('bbhverse'); |
|
|
|
|
|
|
|
|
var cmds = { |
|
|
var cmds = { |
|
|
remote : { |
|
|
remote : { |
|
|
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
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 |
|
|
, noprerequisites : true |
|
|
, independentcmd : 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' : { |
|
|
, 'remote refresh' : { |
|
|
// return a interpreted set of arguments for this cmd run context. |
|
|
// return a interpreted set of arguments for this cmd run context. |
|
|
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
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 |
|
|
, noprerequisites : true |
|
|
, independentcmd : true |
|
|
, independentcmd : true |
|
|
, requires : [ generateDependencies ] |
|
|
, requires : [ generateDependencies ] |
|
|
|
|
|
|
|
|
, 'remote set-url' : { |
|
|
, 'remote set-url' : { |
|
|
// return a interpreted set of arguments for this cmd run context. |
|
|
// return a interpreted set of arguments for this cmd run context. |
|
|
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
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 |
|
|
, noprerequisites : true |
|
|
, independentcmd : true |
|
|
, independentcmd : true |
|
|
, requires : [ generateDependencies ] |
|
|
, requires : [ generateDependencies ] |
|
|
|
|
|
|
|
|
, 'remote add' : { |
|
|
, 'remote add' : { |
|
|
// return a interpreted set of arguments for this cmd run context. |
|
|
// return a interpreted set of arguments for this cmd run context. |
|
|
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
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 |
|
|
, noprerequisites : true |
|
|
, independentcmd : true |
|
|
, independentcmd : true |
|
|
, requires : [ generateDependencies ] |
|
|
, requires : [ generateDependencies ] |
|
|
|
|
|
|
|
|
, 'remote remove' : { |
|
|
, 'remote remove' : { |
|
|
// return a interpreted set of arguments for this cmd run context. |
|
|
// return a interpreted set of arguments for this cmd run context. |
|
|
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
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 |
|
|
, noprerequisites : true |
|
|
, independentcmd : true |
|
|
, independentcmd : true |
|
|
} |
|
|
} |