mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-08 15:45:14 +08:00
support no-interaction usage.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user