mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-18 17:23:16 +00:00
Added debug messages, and updated key enumeration
This commit is contained in:
@@ -47,8 +47,23 @@ if (process.argv.length > 1)
|
|||||||
console.log(val);
|
console.log(val);
|
||||||
process.exit();
|
process.exit();
|
||||||
break;
|
break;
|
||||||
|
case 'list':
|
||||||
case 'keys':
|
case 'keys':
|
||||||
console.log('KEYS = ' + db.Keys);
|
console.log('Number of Keys: ' + db.Keys.length);
|
||||||
|
var skeys = db.Keys.sort(function (a, b)
|
||||||
|
{
|
||||||
|
var aL = a.toLowerCase();
|
||||||
|
var bL = b.toLowerCase();
|
||||||
|
|
||||||
|
if (aL < bL) { return (-1); }
|
||||||
|
if (aL > bL) { return (1); }
|
||||||
|
return (0);
|
||||||
|
});
|
||||||
|
for (var x = 0; x< skeys.length; ++x)
|
||||||
|
{
|
||||||
|
console.log((x+1) + ': ' + skeys[x]);
|
||||||
|
}
|
||||||
|
//console.log('KEYS = ' + db.Keys);
|
||||||
process.exit();
|
process.exit();
|
||||||
break;
|
break;
|
||||||
case 'delete':
|
case 'delete':
|
||||||
@@ -86,7 +101,10 @@ if (process.argv.length > 1)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
console.log('[get/put/delete/export/import] [KEY] [args]');
|
console.log('usage: ');
|
||||||
|
console.log(' [get/delete/export/import] [KEY]');
|
||||||
|
console.log(' [put] [KEY] [value]');
|
||||||
|
console.log(' [list]');
|
||||||
console.log(' Commonly used keys are: disableUpdate and noUpdateCoreModule');
|
console.log(' Commonly used keys are: disableUpdate and noUpdateCoreModule');
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user