-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create proxy command
rdme oas
to https://www.npmjs.com/package/oas
- Loading branch information
Dom Harrington
committed
May 8, 2018
1 parent
6d349ec
commit 1366735
Showing
3 changed files
with
1,416 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}); | ||
}; |
Oops, something went wrong.