Browse Source

Added reconfirm

pull/6/head
pb 3 years ago
parent
commit
2d7a0673e8
1 changed files with 25 additions and 2 deletions
  1. 25
    2
      index.js

+ 25
- 2
index.js View File

@@ -629,7 +629,23 @@ var op = {

dirs(perform_git_seturl)
}
, 'reset' : ()=>{
// Reset the whole installation pertaining to this elxr folder.
}
, 'add': (remotename, url, branch) => {
// PB : TODO -- set-upstream-to should be chosen and intentionally switched. Coz we can have multiple upstream remotes.
// Also each upstream remote may need to have is own branch to switch to. We therefore need a branch nomenclature
// That explicitly has a remote name prefix.
// git branch branch_name --set-upstream-to your_new_remote/branch_name
// git branch branch_name -u your_new_remote/branch_name -- older versions
// git branch -vv -- Detect which branch are we tracking.
// default upstream should be users own fork.
// Also need alias branches to
// define a git alias which would git pull master from one repo, and then git pull master from other remotes.
// probably git merge from all remotes... and relevant branches...
// alias pushall='for i in `git remote`; do git push $i; done;'
// alias pullall='for i in `git remote`; do git pull $i; done;'
var pushable = processedArgs.pushable || false;
remotename = remotename || processedArgs._[1]
url = url || processedArgs._[2]
@@ -2405,12 +2421,19 @@ acquireElevationState().then(() => {
processedArgs.node_env ? clioverrides.node_env = (process.env.NODE_ENV && process.env.NODE_ENV.trim()) || processedArgs.node_env
: (process.env.NODE_ENV && process.env.NODE_ENV.trim()) ? clioverrides.node_env = (process.env.NODE_ENV && process.env.NODE_ENV.trim()): null;
clioverrides.reconfirm = processedArgs.reconfirm
selectedinstance = Object.assign(detectedInstance, clioverrides);
var todo = Promise.resolve(true);
var promptkeys = { 'instanceName' : processedArgs._[1] }

var reconfirm = {
'instanceName' : selectedinstance['instanceName'] === 'chess'
if(clioverrides.reconfirm) {
var reconfirm = {
'instanceName' : selectedinstance['instanceName'] === 'chess'
}
}
else {
var reconfirm = {};
}
var prompts = [];
var eachPrompt = function(k, i, a){

Loading…
Cancel
Save