@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.
@@ -367,4 +367,12 @@ _yargs.default.command('dev', '开始开发', _ => _.positional('index', {
367
367
  alias: 'h',
368
368
  describe: '渠道',
369
369
  type: 'string'
370
- }), deploy).parse();
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).parse();
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "2.100.0",
3
+ "version": "2.101.0",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",