Skip to content

Commit

Permalink
explicitly require commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Everspace committed Mar 10, 2023
1 parent a3a7e74 commit 4e2ea23
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,40 @@ var common = require('./src/common');
//@commands

// Load all default commands
require('./commands').forEach(function (command) {
require('./src/' + command);
});
require('./src/cat');
require('./src/cd');
require('./src/chmod');
require('./src/cmd');
require('./src/common');
require('./src/cp');
require('./src/dirs');
require('./src/echo');
require('./src/error');
require('./src/errorCode');
require('./src/exec-child');
require('./src/exec');
require('./src/find');
require('./src/grep');
require('./src/head');
require('./src/ln');
require('./src/ls');
require('./src/mkdir');
require('./src/mv');
require('./src/popd');
require('./src/pushd');
require('./src/pwd');
require('./src/rm');
require('./src/sed');
require('./src/set');
require('./src/sort');
require('./src/tail');
require('./src/tempdir');
require('./src/test');
require('./src/to');
require('./src/toEnd');
require('./src/touch');
require('./src/unique');
require('./src/which');

//@
//@ ### exit(code)
Expand Down

0 comments on commit 4e2ea23

Please sign in to comment.