Browse Source

Fixes with Build

master
pb 2 years ago
parent
commit
bacb1a5352
5 changed files with 5083 additions and 2160 deletions
  1. 7
    1
      cliverse.js
  2. 1528
    766
      elxr.js
  3. 3538
    1385
      i.js
  4. 4
    3
      index.js
  5. 6
    5
      package.json

+ 7
- 1
cliverse.js View File

@@ -128,7 +128,13 @@ var prompt = function(choices, label, defaultchoice, selectedchoice){
if(!choice) return defaultchoice || choices[0];
if(choice && isNaN(+choice)) {
if(choice === 'd') return defaultchoice || choices[0];
return choice;
try {
return JSON.parse(choice);
}
catch(e) {
// console.error(e)
return choice // Treat it as a string if it is not parsable
}
}
return choices[(+choice) - 1];
})

+ 1528
- 766
elxr.js
File diff suppressed because it is too large
View File


+ 3538
- 1385
i.js
File diff suppressed because it is too large
View File


+ 4
- 3
index.js View File

@@ -3698,8 +3698,9 @@ var __interactive_prompts = function( target, choices, promptsfilter ){
, 'upstream-remote' : { label : `Enter Remote Name ( <= ${target['upstream-remote'] || 'chess'} ) : `
, get choices() {
var reposerver = target['reposerver']
var remotes = []
target.reposervers.forEach(rs => {
var remotes = []
var trs = target.reposervers || []
trs.forEach(rs => {
if(rs.server === reposerver){
remotes.push(remote)
// PB : TODO -- Sort and display highest priority target.remotes.sort( )
@@ -3723,7 +3724,7 @@ var __interactive_prompts = function( target, choices, promptsfilter ){
, get choices() {
var reposerver = target['reposerver'] // PB : TODO -- We need options to work with multiple selected reposervers at the same time..
var remotenames = []
Object.entries(target.remotes).forEach( ([rname, r]) => {
Object.entries(target.remotes || []).forEach( ([rname, r]) => {
if(r.server === reposerver && r.accessibility.find( target[ 'remote-type' ] )){
remotes.push(rname)
// PB : TODO -- Sort and display highest priority target.remotes.sort( )

+ 6
- 5
package.json View File

@@ -15,13 +15,14 @@
"license": "ISC",
"dependencies": {
"bbhverse": "git+http://git.bbh/chess/bbhverse",
"global-this": "git+http://git.bbh/chess/global-this",
"moment": "^2.27.0",
"crossfilter2": "^1.5.4",
"chalk": "^4.1.0",
"crossfilter2": "^1.5.4",
"glob": "^7.1.2",
"uuid": "^8.3.2",
"tree-kill": "^1.2.2"
"global-this": "git+http://git.bbh/chess/global-this",
"moment": "^2.27.0",
"rollup": "^2.77.0",
"tree-kill": "^1.2.2",
"uuid": "^8.3.2"
},
"bin": {
"elxr": "bin/elxr"

Loading…
Cancel
Save