-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
//---------------------------------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.
Metadata
Metadata
Assignees
Labels
No labels