Skip to content

Commit

Permalink
Create proxy command rdme oas to https://www.npmjs.com/package/oas
Browse files Browse the repository at this point in the history
  • Loading branch information
Dom Harrington committed May 8, 2018
1 parent 6d349ec commit 1366735
Show file tree
Hide file tree
Showing 3 changed files with 1,416 additions and 127 deletions.
15 changes: 15 additions & 0 deletions lib/oas.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const cp = require('child_process');
const path = require('path');
const { promisify } = require('util');

const spawn = promisify(cp.spawn);

exports.desc = 'OAS related tasks. See https://www.npmjs.com/package/oas';
exports.category = 'services';
exports.weight = 3;

exports.run = function() {
return spawn(path.join(__dirname, '..', 'node_modules', '.bin', 'oas'), process.argv.slice(3), {
stdio: 'inherit',
});
};
Loading

0 comments on commit 1366735

Please sign in to comment.