forked from groundwater/node-bin-nsh
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
30 lines (24 loc) · 1003 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
function noop(item, callback)
{
callback()
}
function ast2js(item, callback)
{
ast2js[item.type](item, callback)
}
module.exports = ast2js
ast2js.command = require('./command')
ast2js.commandSubstitution = require('./commandSubstitution')
ast2js.duplicateFd = noop // Processed on `_redirects` file
ast2js.glob = require('./glob')
ast2js.ifElse = require('./ifElse')
ast2js.literal = require('./literal')
ast2js.moveFd = noop // Processed on `_redirects` file
ast2js.pipe = require('./pipe')
ast2js.processSubstitution = require('./processSubstitution')
ast2js.redirectFd = require('./redirectFd')
ast2js['until-loop'] = require('./until-loop')
ast2js.variable = require('./variable')
ast2js.variableAssignment = require('./variableAssignment')
ast2js.variableSubstitution = require('./variableSubstitution')
ast2js['while-loop'] = require('./while-loop')