瀏覽代碼

interpret fixed for start. npm bbhverse and other packages dontt auto update for elxr ( due to no versioning ). need a strategy to delete and force update all the time...

master
pb 1 年之前
父節點
當前提交
515c8cf67d
共有 1 個檔案被更改,包括 14 行新增6 行删除
  1. 14
    6
      index.js

+ 14
- 6
index.js 查看文件

@@ -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
}

Loading…
取消
儲存