You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//---------------------------------list logs
cli.responders.listLogs = function () {
cli.verticalSpace();
var ls = childProcess.spawn('ls', ['./.logs/']);
ls.stdout.on('data', function (dataObj) {
// Explode into separate lines
var dataStr = dataObj.toString();
var logFileNames = dataStr.split('\n');
logFileNames.forEach(function (logFileName) {
if (typeof (logFileName) == 'string' && logFileName.trim().length > 0 && logFileName.indexOf('-') > -1) {
console.log(logFileName.trim().split('.')[0]);
cli.verticalSpace();
}
});
});
};
It says that spawn LS is ENOENT, i tried to use the entire coppied path to .logs but it does not work, if i find a fix i will post it here, for now its not working for me at least.
The text was updated successfully, but these errors were encountered:
//---------------------------------list logs
cli.responders.listLogs = function () {
cli.verticalSpace();
var ls = childProcess.spawn('ls', ['./.logs/']);
ls.stdout.on('data', function (dataObj) {
// Explode into separate lines
var dataStr = dataObj.toString();
var logFileNames = dataStr.split('\n');
logFileNames.forEach(function (logFileName) {
if (typeof (logFileName) == 'string' && logFileName.trim().length > 0 && logFileName.indexOf('-') > -1) {
console.log(logFileName.trim().split('.')[0]);
cli.verticalSpace();
}
});
});
};
It says that spawn LS is ENOENT, i tried to use the entire coppied path to .logs but it does not work, if i find a fix i will post it here, for now its not working for me at least.
The text was updated successfully, but these errors were encountered: