@jayfong/x-server 2.100.0 → 2.101.0
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/lib/_cjs/cli/cli.js +9 -1
- package/lib/cli/cli.js +9 -1
- package/package.json +1 -1
package/lib/_cjs/cli/cli.js
CHANGED
|
@@ -367,4 +367,12 @@ _yargs.default.command('dev', '开始开发', _ => _.positional('index', {
|
|
|
367
367
|
alias: 'h',
|
|
368
368
|
describe: '渠道',
|
|
369
369
|
type: 'string'
|
|
370
|
-
}), deploy).
|
|
370
|
+
}), deploy).command('get-channel', '获取渠道', async () => {
|
|
371
|
+
await _env_util.EnvUtil.withChannel({
|
|
372
|
+
cwd: process.cwd(),
|
|
373
|
+
channel: '_',
|
|
374
|
+
cb: async channel => {
|
|
375
|
+
console.log(channel);
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
}).parse();
|
package/lib/cli/cli.js
CHANGED
|
@@ -364,4 +364,12 @@ yargs.command('dev', '开始开发', _ => _.positional('index', {
|
|
|
364
364
|
alias: 'h',
|
|
365
365
|
describe: '渠道',
|
|
366
366
|
type: 'string'
|
|
367
|
-
}), deploy).
|
|
367
|
+
}), deploy).command('get-channel', '获取渠道', async () => {
|
|
368
|
+
await EnvUtil.withChannel({
|
|
369
|
+
cwd: process.cwd(),
|
|
370
|
+
channel: '_',
|
|
371
|
+
cb: async channel => {
|
|
372
|
+
console.log(channel);
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
}).parse();
|