@yizhuan-cli/cli 0.1.0 → 0.1.2

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/README.md CHANGED
@@ -32,6 +32,7 @@ yizhuan --help
32
32
  yizhuan --version
33
33
  yizhuan config path
34
34
  yizhuan config show
35
- yizhuan execute --ability membership_info
36
- yizhuan execute --ability content_search --query "百家号昨天新增了哪些作品"
35
+ yizhuan execute --ability membership
36
+ yizhuan execute --ability works --query "百家号昨天新增了哪些作品"
37
+ yizhuan execute --ability radar --params "{\"mode\":\"following\"}"
37
38
  ```
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@yizhuan-cli/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "易撰命令行工具,用于通过 API Key 查询易撰真实数据。",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "bin": {
8
- "yizhuan": "./src/index.js"
8
+ "yizhuan": "src/index.js"
9
9
  },
10
10
  "files": [
11
11
  "src",
@@ -26,6 +26,6 @@
26
26
  "author": "zoy",
27
27
  "license": "UNLICENSED",
28
28
  "publishConfig": {
29
- "access": "restricted"
29
+ "access": "public"
30
30
  }
31
31
  }
package/src/index.js CHANGED
@@ -8,9 +8,16 @@ const CLI_DIR = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..')
8
8
  const PACKAGE_PATH = path.join(CLI_DIR, 'package.json')
9
9
  const CONFIG_PATH = path.join(os.homedir(), '.config', 'yizhuan', 'config.json')
10
10
  const ABILITIES = new Set([
11
+ 'works',
12
+ 'accounts',
13
+ 'hot_topics',
14
+ 'radar',
15
+ 'membership',
16
+ 'favorites',
11
17
  'author_query',
12
18
  'statistics',
13
19
  'content_search',
20
+ 'content_filters',
14
21
  'hot_topic_analysis',
15
22
  'work_query',
16
23
  'membership_info',
@@ -28,13 +35,12 @@ Usage:
28
35
  yizhuan config show
29
36
 
30
37
  Abilities:
31
- author_query 作者查询
32
- statistics 数据统计
33
- content_search 内容检索
34
- hot_topic_analysis 热点分析
35
- work_query 作品查询
36
- membership_info 会员信息
37
- favorites_query 收藏
38
+ works 作品查询
39
+ accounts 作者查询
40
+ hot_topics 热点查询
41
+ radar 雷达查询
42
+ membership 会员查询
43
+ favorites 收藏查询
38
44
 
39
45
  Config:
40
46
  ${CONFIG_PATH}