This commit is contained in:
syuilo 2020-04-03 23:35:14 +09:00
parent 99fc77b678
commit eec1af1f52
11 changed files with 107 additions and 880 deletions

View file

@ -4,15 +4,11 @@ async function main(uri: string): Promise<any> {
return await updateQuestion(uri);
}
export default () => {
const args = process.argv.slice(3);
const uri = args[0];
const args = process.argv.slice(2);
const uri = args[0];
main(uri).then(result => {
console.log(`Done: ${result}`);
process.exit(0);
}).catch(e => {
console.warn(e);
process.exit(1);
});
}
main(uri).then(result => {
console.log(`Done: ${result}`);
}).catch(e => {
console.warn(e);
});