tests improved key handling, updated, fixed graphics mac OS

This commit is contained in:
Sebastian Hildebrandt
2023-06-09 05:59:02 +02:00
parent f4ba8af8a4
commit 9a6e77dedb
7 changed files with 17 additions and 10 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ function test(f) {
else if (f === ',') { si.getStaticData().then((data) => { if (data !== null) { resolve({ data, title: 'All Static Data' }); } else { resolve('not_supported'); } }); }
else if (f === '.') { si.getDynamicData('apache2, postgres, wsearch').then((data) => { if (data !== null) { resolve({ data, title: 'All Dynamic Data' }); } else { resolve('not_supported'); } }); }
else if (f === '/') { si.getAllData('apache2, postgres, wsearch').then((data) => { if (data !== null) { resolve({ data, title: 'All Data' }); } else { resolve('not_supported'); } }); }
else if (f === '?') {
else if (f === 'getObj') {
const valueObject = {
cpu: '*',
osInfo: 'platform, release',
+1
View File
@@ -79,6 +79,7 @@ process.stdin.on('keypress', (key, data) => {
console.time(['Time to complete']);
startDots();
const siPath = path.join(__dirname, 'si.js');
if (key === '?') { key = 'getObj'; }
const sanitizedKey = utils.sanitizeShellString(key);
exec(`node ${siPath} '${sanitizedKey}'`, { timeout: 30000 }, (error, stdout) => {
waiting = false;