fix: wrap fs calls with when, linting

This commit is contained in:
Tyler Stewart
2017-03-27 17:48:08 -06:00
parent 043d9369cc
commit ef6134d91b
33 changed files with 74 additions and 64 deletions

View File

@@ -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'
}
};