1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-09-16 09:41:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

fix some output

This commit is contained in:
sunnylqm
2025-04-15 17:07:13 +08:00
parent 9cb8d458ad
commit 91b26ebc87
5 changed files with 59 additions and 226 deletions

View File

@@ -1,16 +1,9 @@
#!/usr/bin/env node
import { loadSession } from './api';
import updateNotifier from 'update-notifier';
import { printVersionCommand } from './utils';
import pkg from '../package.json';
import { t } from './utils/i18n';
updateNotifier({ pkg }).notify({
isGlobal: true,
message: t('updateNotifier'),
});
function printUsage() {
// const commandName = args[0];
// TODO: print usage of commandName, or print global usage.

View File

@@ -1,6 +1,4 @@
export default {
updateNotifier:
'Run `{updateCommand}` to update the CLI to get continuous improvements in features, performance, and security.',
loginFirst:
'Not logged in.\nPlease run `cresc login` in the project directory to login.',
lockNotFound:
@@ -38,7 +36,8 @@ This can reduce the risk of inconsistent dependencies and supply chain attacks.
createAppSuccess: 'App created successfully (id: {{id}})',
cancelled: 'Cancelled',
operationSuccess: 'Operation successful',
failedToParseUpdateJson: 'Failed to parse file `update.json`. Try to remove it manually.',
failedToParseUpdateJson:
'Failed to parse file `update.json`. Try to remove it manually.',
ppkPackageGenerated: 'ppk package generated and saved to: {{- output}}',
Message: 'Welcome to Cresc hot update service, {{name}}.',
loggedOut: 'Logged out',
@@ -48,13 +47,14 @@ This can reduce the risk of inconsistent dependencies and supply chain attacks.
runningHermesc: 'Running hermesc: {{command}} {{args}}',
composingSourceMap: 'Composing source map',
copyingDebugId: 'Copying debugid',
sentryCliNotFound: 'Cannot find Sentry CLI tool, please make sure @sentry/cli is properly installed',
sentryCliNotFound:
'Cannot find Sentry CLI tool, please make sure @sentry/cli is properly installed',
sentryReleaseCreated: 'Sentry release created for version: {{version}}',
uploadingSourcemap: 'Uploading sourcemap',
packing: 'Packing',
deletingFile: 'Delete {{file}}',
deletingFile: 'Delete {{- file}}',
bundlingWithRN: 'Bundling with react-native: {{version}}',
fileGenerated: '{{file}} generated.',
fileGenerated: '{{- file}} generated.',
processingError: 'Error processing file: {{error}}',
usageDiff: 'Usage: cresc {{command}} <origin> <next>',
pluginDetected: 'detected {{name}} plugin',
@@ -74,7 +74,8 @@ This can reduce the risk of inconsistent dependencies and supply chain attacks.
usageParseIpa: 'Usage: cresc parseIpa <ipa file>',
usageParseApk: 'Usage: cresc parseApk <apk file>',
offset: 'Offset {{offset}}',
packageUploadSuccess: 'Successfully uploaded new hot update package (id: {{id}})',
packageUploadSuccess:
'Successfully uploaded new hot update package (id: {{id}})',
rolloutRangeError: 'rollout must be an integer between 1-100',
nativeVersionNotFound: 'No native version found >= {{version}}',
nativeVersionNotFoundLess: 'No native version found <= {{version}}',
@@ -82,10 +83,13 @@ This can reduce the risk of inconsistent dependencies and supply chain attacks.
packageIdRequired: 'Please provide packageId or packageVersion parameter',
operationComplete: 'Operation complete, bound to {{count}} native versions',
platformRequired: 'Platform must be specified.',
bundleCommandError: '"react-native bundle" command exited with code {{code}}.',
bundleCommandError:
'"react-native bundle" command exited with code {{code}}.',
copyHarmonyBundleError: 'Error copying Harmony bundle: {{error}}',
copyFileFailed: 'Failed to copy file: {{error}}',
deleteFile: 'Delete {{file}}',
rolloutConfigSet: 'Set {{rollout}}% rollout for version {{version}} on native version(s) {{versions}}',
versionBind: 'Bound version {{version}} to native version {{nativeVersion}} (id: {{id}})',
deleteFile: 'Delete {{- file}}',
rolloutConfigSet:
'Set {{rollout}}% rollout for version {{version}} on native version(s) {{versions}}',
versionBind:
'Bound version {{version}} to native version {{nativeVersion}} (id: {{id}})',
};

View File

@@ -1,6 +1,4 @@
export default {
updateNotifier:
'建议运行 `{updateCommand}` 来更新命令行工具以获得功能、性能和安全性的持续改进',
loginFirst: '尚未登录。\n请在项目目录中运行`pushy login`命令来登录',
lockNotFound:
'没有检测到任何 lock 文件,这可能导致依赖关系不一致而使热更异常。',
@@ -50,9 +48,9 @@ export default {
sentryReleaseCreated: '已为版本 {{version}} 创建 Sentry release',
uploadingSourcemap: '正在上传 sourcemap',
packing: '正在打包',
deletingFile: '删除 {{file}}',
deletingFile: '删除 {{- file}}',
bundlingWithRN: '正在使用 react-native {{version}} 打包',
fileGenerated: '已生成 {{file}}。',
fileGenerated: '已生成 {{- file}}。',
processingError: '处理文件时出错:{{error}}',
usageDiff: '用法pushy {{command}} <origin> <next>',
pluginDetected: '检测到 {{name}} 插件',
@@ -83,7 +81,9 @@ export default {
bundleCommandError: '"react-native bundle" 命令退出,代码为 {{code}}。',
copyHarmonyBundleError: '复制 Harmony bundle 错误:{{error}}',
copyFileFailed: '复制文件失败:{{error}}',
deleteFile: '删除 {{file}}',
rolloutConfigSet: '已在原生版本 {{versions}} 上设置灰度发布 {{rollout}}% 热更版本 {{version}}',
versionBind: '已将热更版本 {{version}} 绑定到原生版本 {{nativeVersion}} (id: {{id}})',
deleteFile: '删除 {{- file}}',
rolloutConfigSet:
'已在原生版本 {{versions}} 上设置灰度发布 {{rollout}}% 热更版本 {{version}}',
versionBind:
'已将热更版本 {{version}} 绑定到原生版本 {{nativeVersion}} (id: {{id}})',
};