fix: wrap fs calls with when, linting
This commit is contained in:
@@ -2,10 +2,10 @@ const cwd = require('./cwd').handler;
|
||||
|
||||
module.exports = {
|
||||
directive: ['CDUP', 'XCUP'],
|
||||
handler: function(args) {
|
||||
handler: function (args) {
|
||||
args.command._ = [args.command._[0], '..'];
|
||||
return cwd.call(this, args);
|
||||
},
|
||||
syntax: '{{cmd}}',
|
||||
description: 'Change to Parent Directory'
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user