xiaozuoassistant 0.1.93 → 0.1.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +8 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -164,6 +164,11 @@ function getFlagValue(name) {
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
function getRegistry() {
|
|
167
|
+
if (hasFlag('-cn')) {
|
|
168
|
+
return 'https://registry.npmmirror.com';
|
|
169
|
+
} else if (hasFlag('-en')) {
|
|
170
|
+
return 'https://registry.npmjs.org';
|
|
171
|
+
}
|
|
167
172
|
return getFlagValue('--registry') || process.env.npm_config_registry || 'https://registry.npmjs.org';
|
|
168
173
|
}
|
|
169
174
|
|
|
@@ -804,6 +809,9 @@ if (command === 'start') {
|
|
|
804
809
|
console.log(' doctor Check the health and configuration');
|
|
805
810
|
console.log(' version Print package version and environment');
|
|
806
811
|
console.log(' update Update xiaozuoassistant and auto-restart if running');
|
|
812
|
+
console.log(' Options:');
|
|
813
|
+
console.log(' -cn Use Chinese npm registry (https://registry.npmmirror.com)');
|
|
814
|
+
console.log(' -en Use English npm registry (https://registry.npmjs.org)');
|
|
807
815
|
console.log(' remove Uninstall and delete data in current directory');
|
|
808
816
|
console.log(' export Backup local data (config, memories) to a file');
|
|
809
817
|
console.log(' import Restore data from a backup file');
|