(args, options, input)
| 13 | const bin = require.resolve("./cli.js"); |
| 14 | |
| 15 | function cli(args, options, input) { |
| 16 | const result = x(bin, args, { |
| 17 | nodeOptions: { |
| 18 | cwd: options.cwd, |
| 19 | env: options.env, |
| 20 | }, |
| 21 | }); |
| 22 | |
| 23 | result.process.stdin.write(input); |
| 24 | result.process.stdin.end(); |
| 25 | |
| 26 | return result; |
| 27 | } |
| 28 | |
| 29 | const fixBootstrap = (fixture) => fix.bootstrap(fixture, __dirname); |
| 30 |