Pre-render ReDoc

redoc-cliはexpandResponsesは200のみとすると数値と認識されてしまい設定できないため202,204という指定にしています
This commit is contained in:
tamaina 2020-04-03 17:13:41 +09:00
parent 9e9d378bf1
commit 795fb0eb60
11 changed files with 885 additions and 112 deletions

View file

@ -21,12 +21,14 @@ async function main(username: string) {
}
}
const args = process.argv.slice(2);
export default () => {
const args = process.argv.slice(3);
main(args[0]).then(() => {
console.log('Success');
process.exit(0);
}).catch(e => {
console.error(`Error: ${e.message || e}`);
process.exit(1);
});
main(args[0]).then(() => {
console.log('Success');
process.exit(0);
}).catch(e => {
console.error(`Error: ${e.message || e}`);
process.exit(1);
});
}