Skip to content

Commit 1366735

Browse files
author
Dom Harrington
committed
Create proxy command rdme oas to https://www.npmjs.com/package/oas
1 parent 6d349ec commit 1366735

File tree

3 files changed

+1416
-127
lines changed

3 files changed

+1416
-127
lines changed

lib/oas.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const cp = require('child_process');
2+
const path = require('path');
3+
const { promisify } = require('util');
4+
5+
const spawn = promisify(cp.spawn);
6+
7+
exports.desc = 'OAS related tasks. See https://www.npmjs.com/package/oas';
8+
exports.category = 'services';
9+
exports.weight = 3;
10+
11+
exports.run = function() {
12+
return spawn(path.join(__dirname, '..', 'node_modules', '.bin', 'oas'), process.argv.slice(3), {
13+
stdio: 'inherit',
14+
});
15+
};

0 commit comments

Comments
 (0)