@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 +3 -2
- package/package.json +3 -3
- package/src/index.js +13 -7
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
|
|
36
|
-
yizhuan execute --ability
|
|
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.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "易撰命令行工具,用于通过 API Key 查询易撰真实数据。",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
|
-
"yizhuan": "
|
|
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": "
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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}
|