1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-08 15:45:14 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

support no-interaction usage.

This commit is contained in:
tdzl2003
2016-07-30 04:19:42 +08:00
parent de3ea04239
commit 67773c458a
7 changed files with 14 additions and 8 deletions

View File

@@ -24,6 +24,7 @@ const commands = {
exports.run = function () {
const argv = require('cli-arguments').parse(require('../cli.json'));
global.NO_INTERACTIVE = argv.options['no-interactive'];
loadSession()
.then(()=>commands[argv.command](argv))
@@ -33,5 +34,6 @@ exports.run = function () {
return;
}
console.error(err.message);
process.exit(-1);
});
};