mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-10-30 06:13:11 +08:00
cli modular refactor (#16)
* add logic to support SENTRY_PROPERTIES parameter * remove update.json and meta.json files in ppk * udpapte * refactor modles * update * add package-module file * update * update readme file * modifu cli.json file * fix command issues * improve version workflow logic * udpate * update * update * update * udpate * udpate * add example * update readme file * udpate version * change logic to use pushy command uniformly
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { question } from './utils';
|
||||
import { post, get, replaceSession, saveSession, closeSession } from './api';
|
||||
import crypto from 'crypto';
|
||||
import type { CommandContext } from 'types';
|
||||
import { closeSession, get, post, replaceSession, saveSession } from './api';
|
||||
import { question } from './utils';
|
||||
import { t } from './utils/i18n';
|
||||
|
||||
function md5(str: string) {
|
||||
@@ -19,7 +20,7 @@ export const userCommands = {
|
||||
await saveSession();
|
||||
console.log(t('welcomeMessage', { name: info.name }));
|
||||
},
|
||||
logout: async () => {
|
||||
logout: async (context: CommandContext) => {
|
||||
await closeSession();
|
||||
console.log(t('loggedOut'));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user