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

support login & logout & me

This commit is contained in:
tdzl2003
2016-02-14 16:47:58 +08:00
parent 74396f8426
commit 2c3a402f51
4 changed files with 90 additions and 15 deletions

View File

@@ -2,6 +2,7 @@
* Created by tdzl2003 on 2/13/16.
*/
const {loadSession} = require('./api');
const userCommands = require('./user').commands;
function printUsage({args}) {
@@ -20,5 +21,8 @@ const commands = {
exports.run = function () {
const argv = require('cli-arguments').parse(require('./cli.json'));
commands[argv.command](argv).catch(err=>console.error(err.stack));
loadSession()
.then(()=>commands[argv.command](argv))
.catch(err=>console.error(err.stack));
};