 demo
					
					пре 4 година
						demo
					
					пре 4 година
				| @@ -51,7 +51,7 @@ function nodeShellExec() { | |||
| child.stderr.on('data', (chunk) => { | |||
| if(messages.join('').indexOf('fatal: not a git repository') > -1) opts.haserrors = true; | |||
| messages.push(chunk); | |||
| process.stdout.write( chunk ) | |||
| // process.stdout.write( chunk ) | |||
| // console.error('stderr e: ' + chunk) | |||
| }); | |||
| } | |||
| @@ -90,6 +90,7 @@ function nodeShellExec() { | |||
| } | |||
| var prompt = function(choices, label, defaultchoice){ | |||
| // prompt accepts either an array or an object as choices. | |||
| var choices = choices || []; | |||
| return this.prompter.ask( | |||
| `${label} \n` + Object.keys(choices).map(choice => { return ` ${(+choice) + 1}) ${choices[choice]} `}).join('\n') + `\n default ( <= ${ defaultchoice || choices[0]} ) : ` | |||
| @@ -19,9 +19,9 @@ module.exports = ((name, options)=>{ | |||
| // different based on currently available/accessible based on device and client. | |||
| // We just treat them as different remotes and merge as needed. | |||
| // | |||
| , { 'origin' : `${options.reposerver}/${options.repouser}/elxr.git` } | |||
| , { 'origin-public' : `https://git.bbh.org.in/${options.repouser}/elxr.git` } | |||
| , { 'origin-unc' : `//172.16.0.27/repos/${options.repouser}/elxr.git` } | |||
| , { 'origin' : `${options.reposerver}/${options.username}/elxr.git` } | |||
| , { 'origin-public' : `https://git.bbh.org.in/${options.username}/elxr.git` } | |||
| , { 'origin-unc' : `//172.16.0.27/repos/${options.username}/elxr.git` } | |||
| ] | |||
| , 'push-remotes' : [ | |||