|
1 | 1 | GrammarUtils = require '../grammar-utils'
|
2 | 2 |
|
3 |
| -module.exports = |
4 |
| - |
5 |
| - 'Bash Automated Test System (Bats)': |
6 |
| - |
7 |
| - 'Selection Based': |
8 |
| - command: 'bats' |
9 |
| - args: (context) -> |
10 |
| - code = context.getCode() |
11 |
| - tmpFile = GrammarUtils.createTempFileWithCode(code) |
12 |
| - return [tmpFile] |
13 |
| - |
14 |
| - 'File Based': |
15 |
| - command: 'bats' |
16 |
| - args: ({filepath}) -> [filepath] |
17 |
| - |
18 |
| - 'Shell Script': |
19 |
| - 'Selection Based': |
20 |
| - command: process.env.SHELL |
21 |
| - args: (context) -> ['-c', context.getCode()] |
22 |
| - |
23 |
| - 'File Based': |
24 |
| - command: process.env.SHELL |
25 |
| - args: ({filepath}) -> [filepath] |
26 |
| - |
27 |
| - 'Shell Script (Fish)': |
28 |
| - 'Selection Based': |
29 |
| - command: 'fish' |
30 |
| - args: (context) -> ['-c', context.getCode()] |
31 |
| - |
32 |
| - 'File Based': |
33 |
| - command: 'fish' |
34 |
| - args: ({filepath}) -> [filepath] |
35 |
| - |
36 |
| - Tcl: |
37 |
| - 'Selection Based': |
38 |
| - command: 'tclsh' |
39 |
| - args: (context) -> |
40 |
| - code = context.getCode() |
41 |
| - tmpFile = GrammarUtils.createTempFileWithCode(code) |
42 |
| - return [tmpFile] |
43 |
| - |
44 |
| - 'File Based': |
45 |
| - command: 'tclsh' |
46 |
| - args: ({filepath}) -> [filepath] |
| 3 | +exports['Bash Automated Test System (Bats)'] = |
| 4 | + 'Selection Based': |
| 5 | + command: 'bats' |
| 6 | + args: (context) -> |
| 7 | + code = context.getCode() |
| 8 | + tmpFile = GrammarUtils.createTempFileWithCode(code) |
| 9 | + return [tmpFile] |
| 10 | + |
| 11 | + 'File Based': |
| 12 | + command: 'bats' |
| 13 | + args: ({filepath}) -> [filepath] |
| 14 | + |
| 15 | +exports.Bash = |
| 16 | + 'Selection Based': |
| 17 | + command: process.env.SHELL |
| 18 | + args: (context) -> ['-c', context.getCode()] |
| 19 | + |
| 20 | + 'File Based': |
| 21 | + command: process.env.SHELL |
| 22 | + args: ({filepath}) -> [filepath] |
| 23 | + |
| 24 | +exports['Shell Script'] = exports.Bash |
| 25 | + |
| 26 | +exports['Shell Script (Fish)'] = |
| 27 | + 'Selection Based': |
| 28 | + command: 'fish' |
| 29 | + args: (context) -> ['-c', context.getCode()] |
| 30 | + |
| 31 | + 'File Based': |
| 32 | + command: 'fish' |
| 33 | + args: ({filepath}) -> [filepath] |
| 34 | + |
| 35 | +exports.Tcl = |
| 36 | + 'Selection Based': |
| 37 | + command: 'tclsh' |
| 38 | + args: (context) -> |
| 39 | + code = context.getCode() |
| 40 | + tmpFile = GrammarUtils.createTempFileWithCode(code) |
| 41 | + return [tmpFile] |
| 42 | + |
| 43 | + 'File Based': |
| 44 | + command: 'tclsh' |
| 45 | + args: ({filepath}) -> [filepath] |
0 commit comments