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

pushy uploadIpa

This commit is contained in:
tdzl2003
2016-04-02 23:39:09 +08:00
parent ae628b310a
commit d0037f1217
8 changed files with 218 additions and 32 deletions

View File

@@ -3,8 +3,6 @@
*/
const {loadSession} = require('./api');
const userCommands = require('./user').commands;
import {commands as bundleCommands} from './bundle';
function printUsage({args}) {
// const commandName = args[0];
@@ -16,8 +14,10 @@ function printUsage({args}) {
}
const commands = {
...userCommands,
...bundleCommands,
...require('./user').commands,
...require('./bundle').commands,
...require('./app').commands,
...require('./package').commands,
help: printUsage,
};
@@ -27,6 +27,11 @@ exports.run = function () {
loadSession()
.then(()=>commands[argv.command](argv))
.catch(err=>{
if (err.status === 401) {
console.log('Not loggined.\nRun `pushy login` at your project directory to login.');
return;
}
console.log(err.message);
setTimeout(()=>{
throw err;
});