eprolo-cli 1.0.112 → 1.0.113

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/eprolo-cli.js CHANGED
@@ -349,7 +349,10 @@ Usage:
349
349
  eprolo-cli auth login [--default-shop <shop>] 登录并写凭据文件(框架通过 env 注入 EPROLO_USER_CODE)
350
350
  eprolo-cli auth status 查看授权状态
351
351
  eprolo-cli auth logout 退出授权
352
+ eprolo-cli product <product_id> 查询产品详情
353
+ eprolo-cli product-list 查询产品列表
352
354
  eprolo-cli orders 查询订单列表
355
+ eprolo-cli list 查询订单列表
353
356
  eprolo-cli add-order <order> 提交订单
354
357
  eprolo-cli insert-product <product> 插入产品
355
358
  Authorization:
@@ -381,7 +384,11 @@ Credential file (~/.eprolo-toolkit/config.json):
381
384
 
382
385
  async function main() {
383
386
  const argv = process.argv.slice(2);
384
- console.log("-----------------", argv);
387
+ const [group, command] = args._;
388
+ if (!group || args.help || args.h) {
389
+ printHelp();
390
+ return;
391
+ }
385
392
  if (argv[0] === "auth" && argv[1] === "login") {
386
393
  await login(argv.slice(2));
387
394
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eprolo-cli",
3
- "version": "1.0.112",
3
+ "version": "1.0.113",
4
4
  "description": "CLI for Dianxiaobao ICBU AI publishing, authorization profile management, task submission, and task status checks.",
5
5
  "bin": {
6
6
  "eprolo": "bin/eprolo-cli.js"