oipage 0.3.0 → 0.3.1

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.
Files changed (45) hide show
  1. package/.github/FUNDING.yml +11 -11
  2. package/AUTHORS.txt +6 -6
  3. package/CHANGELOG +62 -56
  4. package/LICENSE +20 -20
  5. package/README.md +122 -122
  6. package/bin/options.js +73 -73
  7. package/bin/run +208 -208
  8. package/browserjs/getStyle/index.d.ts +10 -10
  9. package/browserjs/getStyle/index.js +12 -12
  10. package/browserjs/index.d.ts +12 -12
  11. package/browserjs/index.js +8 -8
  12. package/browserjs/onReady/index.d.ts +7 -7
  13. package/browserjs/onReady/index.js +7 -7
  14. package/browserjs/setStyle/index.d.ts +9 -9
  15. package/browserjs/setStyle/index.js +4 -4
  16. package/corejs/animation/index.d.ts +11 -11
  17. package/corejs/animation/index.js +101 -101
  18. package/corejs/index.d.ts +9 -9
  19. package/corejs/index.js +6 -6
  20. package/corejs/throttle/index.d.ts +30 -30
  21. package/corejs/throttle/index.js +49 -49
  22. package/nodejs/core/file.js +162 -162
  23. package/nodejs/core/image.js +4 -4
  24. package/nodejs/core/log.js +89 -89
  25. package/nodejs/core/network.js +39 -39
  26. package/nodejs/core/options.js +48 -48
  27. package/nodejs/core/remote.js +60 -60
  28. package/nodejs/core/responseFileList.js +27 -27
  29. package/nodejs/core/server.js +198 -189
  30. package/nodejs/data/404.js +51 -51
  31. package/nodejs/data/mime.types.js +111 -111
  32. package/nodejs/form/common.js +2 -2
  33. package/nodejs/form/index.js +79 -79
  34. package/nodejs/form/select.js +9 -9
  35. package/nodejs/index.js +57 -57
  36. package/nodejs/loader/simpleScss.js +247 -247
  37. package/nodejs/loader/xhtml.js +520 -520
  38. package/nodejs/reader/plain.js +20 -20
  39. package/package.json +33 -33
  40. package/stylecss/index.css +3 -3
  41. package/stylecss/normalize.css +93 -93
  42. package/stylecss/rasterize.css +317 -317
  43. package/stylecss/skeleton.css +16 -16
  44. package/types/get-options.d.ts +5 -5
  45. package/types/index.d.ts +186 -186
@@ -1,12 +1,12 @@
1
- # These are supported funding model platforms
2
-
3
- github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4
- patreon: # Replace with a single Patreon username
5
- open_collective: # Replace with a single Open Collective username
6
- ko_fi: # Replace with a single Ko-fi username
7
- tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
- community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
- liberapay: # Replace with a single Liberapay username
10
- issuehunt: # Replace with a single IssueHunt username
11
- otechie: # Replace with a single Otechie username
1
+ # These are supported funding model platforms
2
+
3
+ github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4
+ patreon: # Replace with a single Patreon username
5
+ open_collective: # Replace with a single Open Collective username
6
+ ko_fi: # Replace with a single Ko-fi username
7
+ tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
+ community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
+ liberapay: # Replace with a single Liberapay username
10
+ issuehunt: # Replace with a single IssueHunt username
11
+ otechie: # Replace with a single Otechie username
12
12
  custom: ['https://zxl20070701.github.io/notebook/home.html']
package/AUTHORS.txt CHANGED
@@ -1,6 +1,6 @@
1
- Authors ordered by first contribution.
2
-
3
- zxl20070701 <1904314465@qq.com> <https://github.com/zxl20070701>
4
-
5
- -----------------------------------------------------
6
- We thank all of them for their contributions!
1
+ Authors ordered by first contribution.
2
+
3
+ zxl20070701 <1904314465@qq.com> <https://github.com/zxl20070701>
4
+
5
+ -----------------------------------------------------
6
+ We thank all of them for their contributions!
package/CHANGELOG CHANGED
@@ -1,56 +1,62 @@
1
- v0.1.0:
2
- date:2024-09-21
3
- changes:
4
- - 初始化版本
5
- 1、命令
6
- (包括:help、server、version、config、delete、copy、pick、move、network、get、post、cat、run)
7
- 2、corejs
8
- * animation 动画
9
- * throttle 节流函数
10
- 3、browserjs
11
- * getStyle 获取节点样式
12
- * onReady 解析完执行
13
- 4、nodejs
14
- * server 服务器
15
- * options 命令行参数解析
16
- * file 文件相关操作
17
- * console 控制台打印
18
- (包括:log、warn、error、linelog、deeplog)
19
- * ajax 网络请求
20
- * network 网络信息等
21
- * data 资源数据
22
- * image 图片相关操作
23
- * loader 文件解析
24
- (simpleScss、xhtml)
25
- 5、stylecss
26
- * 统一浏览器样式 normalize.css
27
- * 十二栅格化 rasterize.css
28
- * 架屏动画 skeleton.css
29
- v0.2.0:
30
- date:2024-12-01
31
- changes:
32
- - 优化改造
33
- 1、nodejs
34
- * linelog新增清除行记录重置功能
35
- * deeplog新增清除行记录重置功能
36
- - 新增功能
37
- 1、nodejs
38
- * plain 读取文本内容
39
- * form 表单录入
40
- (包括:input输入框、select列表选择)
41
- * server hander方法补充api
42
- (包括:getFileInfo()、filePath)
43
- v0.3.0:
44
- date:2025-01-23
45
- changes:
46
- - 修复bug
47
- 1、nodejs
48
- * 修复目标位置可能不存在导致的报错
49
- (包括:copySync、moveSync)
50
- - 优化改造
51
- 1、nodejs
52
- * 优化服务器启动日志,添加访问地址提示
53
- - 新增功能
54
- 1、nodejs
55
- * “file 文件相关操作”新增若干方法
56
- (包括:listFolderSync)
1
+ v0.1.0:
2
+ date:2024-09-21
3
+ changes:
4
+ - 初始化版本
5
+ 1、命令
6
+ (包括:help、server、version、config、delete、copy、pick、move、network、get、post、cat、run)
7
+ 2、corejs
8
+ * animation 动画
9
+ * throttle 节流函数
10
+ 3、browserjs
11
+ * getStyle 获取节点样式
12
+ * onReady 解析完执行
13
+ 4、nodejs
14
+ * server 服务器
15
+ * options 命令行参数解析
16
+ * file 文件相关操作
17
+ * console 控制台打印
18
+ (包括:log、warn、error、linelog、deeplog)
19
+ * ajax 网络请求
20
+ * network 网络信息等
21
+ * data 资源数据
22
+ * image 图片相关操作
23
+ * loader 文件解析
24
+ (simpleScss、xhtml)
25
+ 5、stylecss
26
+ * 统一浏览器样式 normalize.css
27
+ * 十二栅格化 rasterize.css
28
+ * 架屏动画 skeleton.css
29
+ v0.2.0:
30
+ date:2024-12-01
31
+ changes:
32
+ - 优化改造
33
+ 1、nodejs
34
+ * linelog新增清除行记录重置功能
35
+ * deeplog新增清除行记录重置功能
36
+ - 新增功能
37
+ 1、nodejs
38
+ * plain 读取文本内容
39
+ * form 表单录入
40
+ (包括:input输入框、select列表选择)
41
+ * server hander方法补充api
42
+ (包括:getFileInfo()、filePath)
43
+ v0.3.0:
44
+ date:2025-01-23
45
+ changes:
46
+ - 修复bug
47
+ 1、nodejs
48
+ * 修复目标位置可能不存在导致的报错
49
+ (包括:copySync、moveSync)
50
+ - 优化改造
51
+ 1、nodejs
52
+ * 优化服务器启动日志,添加访问地址提示
53
+ - 新增功能
54
+ 1、nodejs
55
+ * “file 文件相关操作”新增若干方法
56
+ (包括:listFolderSync)
57
+ v0.3.1:
58
+ date:2025-03-06
59
+ changes:
60
+ - 优化改造
61
+ 1、使用流读取以使开发服务器支持大文件下载
62
+ (同时添加下载进度可查)
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) zxl20070701 走一步,再走一步
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) zxl20070701 走一步,再走一步
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,123 +1,123 @@
1
- # [OIPage](https://github.com/oi-contrib/OIPage)
2
- OI页面快速开发辅助库,包括核心包、Nodejs、浏览器、样式文件等
3
-
4
- <p>
5
- <a href="https://zxl20070701.github.io/toolbox/#/npm-download?packages=oipage&interval=7">
6
- <img src="https://img.shields.io/npm/dm/oipage.svg" alt="downloads">
7
- </a>
8
- <a href="https://www.npmjs.com/package/oipage">
9
- <img src="https://img.shields.io/npm/v/oipage.svg" alt="npm">
10
- </a>
11
- <a href="https://github.com/oi-contrib/OIPage" target='_blank'>
12
- <img alt="GitHub repo stars" src="https://img.shields.io/github/stars/oi-contrib/OIPage?style=social">
13
- </a>
14
- </p>
15
-
16
- <img src="https://nodei.co/npm/oipage.png?downloads=true&amp;downloadRank=true&amp;stars=true" alt="NPM">
17
-
18
- ## 使用方式
19
-
20
- 你可以作为一个命令行使用,那么你需要全局安装:
21
-
22
- ```shell
23
- npm install -g oipage
24
- ```
25
-
26
- 也可以作为项目开发中的一个功能加强,在 package.json 中配置命令或nodejs文件中引入需要的模块使用,那么就在项目中执行安装命令:
27
-
28
- ```shell
29
- npm install oipage --save
30
- ```
31
-
32
- 全局安装后,就可以直接作为命令行使用了。你可以打印帮助查看:
33
-
34
- ```shell
35
- oipage-cli -h
36
- ```
37
-
38
- 比如会出现下列内容:
39
-
40
- ```
41
- Usage: oipage-cli <command>
42
-
43
- where <command> is one of:
44
- --help, -h, --server, -s, --version, -v, --config, -c, --delete, --copy, --pick, --move, --network, --get, --post, --cat, --run
45
-
46
- oipage-cli --help|-h <term> search for help on <term>
47
- oipage-cli --help|-h involved overview
48
- ```
49
-
50
- 比如--server或-s命令如何查看具体使用说明?只需要:
51
-
52
- ```shell
53
- oipage-cli -h s
54
- ```
55
-
56
- 然后看见打印提示:
57
-
58
- ```
59
- oipage-cli --server|-s [port|20000] [2]render source server.
60
- ```
61
-
62
- 根据提示我们知道,这是一个快速启动一个本地资源服务器的命令,使用的时候可以设置服务器端口号,端口号缺省是20000。
63
-
64
- 比如我们启动端口为8080的服务器:
65
-
66
- ```shell
67
- oipage-cli -s 8080
68
- ```
69
-
70
- 对于更复杂的业务,我们推荐使用配置文件的方式。比如我们准备了配置文件 oipage.config.js ,那么就可以:
71
-
72
- ```shell
73
- oipage-cli -c ./oipage.config.js
74
- ```
75
-
76
- 配置文件的内容如下:
77
-
78
- ```js
79
- module.exports = {
80
- devServer: {
81
- // 可配置参数和“服务器”一致
82
- }
83
- };
84
- ```
85
-
86
- 如果你需要在项目中更灵活的使用,我们也提供了一些有用的API,具体如下:
87
-
88
- ### 核心包
89
-
90
- - [animation 动画](./docs/corejs/animation.md)
91
- - [throttle 节流函数](./docs/corejs/throttle.md)
92
-
93
- ### Nodejs
94
-
95
- - [服务器](./docs/nodejs/server.md)
96
- - [命令行参数解析](./docs/nodejs/options.md)
97
- - [文件相关操作](./docs/nodejs/file.md)
98
- - [控制台打印](./docs/nodejs/console.md)
99
- - [网络请求(ajax)](./docs/nodejs/ajax.md)
100
- - [网络信息等](./docs/nodejs/network.md)
101
- - [资源数据](./docs/nodejs/data.md)
102
- - [图片相关操作](./docs/nodejs/image.md)
103
- - [文件解析](./docs/nodejs/loader.md)
104
- - [文件读取](./docs/nodejs/reader.md)
105
- - [表单录入](./docs/nodejs/form.md)
106
-
107
- ### 浏览器
108
-
109
- - [getStyle 获取节点样式](./docs/browserjs/getStyle.md)
110
- - [onReady 解析完执行](./docs/browserjs/onReady.md)
111
-
112
- ### 样式文件
113
-
114
- > 统一浏览器样式 `normalize.css` 直接: `import 'oipage/stylecss/normalize.css'` 即可!
115
-
116
- - [rasterize 十二栅格化](./docs/stylecss/rasterize.md)
117
- - [skeleton 骨架屏动画](./docs/stylecss/skeleton.md)
118
-
119
- ## 版权
120
-
121
- MIT License
122
-
1
+ # [OIPage](https://github.com/oi-contrib/OIPage)
2
+ OI页面快速开发辅助库,包括核心包、Nodejs、浏览器、样式文件等
3
+
4
+ <p>
5
+ <a href="https://zxl20070701.github.io/toolbox/#/npm-download?packages=oipage&interval=7">
6
+ <img src="https://img.shields.io/npm/dm/oipage.svg" alt="downloads">
7
+ </a>
8
+ <a href="https://www.npmjs.com/package/oipage">
9
+ <img src="https://img.shields.io/npm/v/oipage.svg" alt="npm">
10
+ </a>
11
+ <a href="https://github.com/oi-contrib/OIPage" target='_blank'>
12
+ <img alt="GitHub repo stars" src="https://img.shields.io/github/stars/oi-contrib/OIPage?style=social">
13
+ </a>
14
+ </p>
15
+
16
+ <img src="https://nodei.co/npm/oipage.png?downloads=true&amp;downloadRank=true&amp;stars=true" alt="NPM">
17
+
18
+ ## 使用方式
19
+
20
+ 你可以作为一个命令行使用,那么你需要全局安装:
21
+
22
+ ```shell
23
+ npm install -g oipage
24
+ ```
25
+
26
+ 也可以作为项目开发中的一个功能加强,在 package.json 中配置命令或nodejs文件中引入需要的模块使用,那么就在项目中执行安装命令:
27
+
28
+ ```shell
29
+ npm install oipage --save
30
+ ```
31
+
32
+ 全局安装后,就可以直接作为命令行使用了。你可以打印帮助查看:
33
+
34
+ ```shell
35
+ oipage-cli -h
36
+ ```
37
+
38
+ 比如会出现下列内容:
39
+
40
+ ```
41
+ Usage: oipage-cli <command>
42
+
43
+ where <command> is one of:
44
+ --help, -h, --server, -s, --version, -v, --config, -c, --delete, --copy, --pick, --move, --network, --get, --post, --cat, --run
45
+
46
+ oipage-cli --help|-h <term> search for help on <term>
47
+ oipage-cli --help|-h involved overview
48
+ ```
49
+
50
+ 比如--server或-s命令如何查看具体使用说明?只需要:
51
+
52
+ ```shell
53
+ oipage-cli -h s
54
+ ```
55
+
56
+ 然后看见打印提示:
57
+
58
+ ```
59
+ oipage-cli --server|-s [port|20000] [2]render source server.
60
+ ```
61
+
62
+ 根据提示我们知道,这是一个快速启动一个本地资源服务器的命令,使用的时候可以设置服务器端口号,端口号缺省是20000。
63
+
64
+ 比如我们启动端口为8080的服务器:
65
+
66
+ ```shell
67
+ oipage-cli -s 8080
68
+ ```
69
+
70
+ 对于更复杂的业务,我们推荐使用配置文件的方式。比如我们准备了配置文件 oipage.config.js ,那么就可以:
71
+
72
+ ```shell
73
+ oipage-cli -c ./oipage.config.js
74
+ ```
75
+
76
+ 配置文件的内容如下:
77
+
78
+ ```js
79
+ module.exports = {
80
+ devServer: {
81
+ // 可配置参数和“服务器”一致
82
+ }
83
+ };
84
+ ```
85
+
86
+ 如果你需要在项目中更灵活的使用,我们也提供了一些有用的API,具体如下:
87
+
88
+ ### 核心包
89
+
90
+ - [animation 动画](./docs/corejs/animation.md)
91
+ - [throttle 节流函数](./docs/corejs/throttle.md)
92
+
93
+ ### Nodejs
94
+
95
+ - [服务器](./docs/nodejs/server.md)
96
+ - [命令行参数解析](./docs/nodejs/options.md)
97
+ - [文件相关操作](./docs/nodejs/file.md)
98
+ - [控制台打印](./docs/nodejs/console.md)
99
+ - [网络请求(ajax)](./docs/nodejs/ajax.md)
100
+ - [网络信息等](./docs/nodejs/network.md)
101
+ - [资源数据](./docs/nodejs/data.md)
102
+ - [图片相关操作](./docs/nodejs/image.md)
103
+ - [文件解析](./docs/nodejs/loader.md)
104
+ - [文件读取](./docs/nodejs/reader.md)
105
+ - [表单录入](./docs/nodejs/form.md)
106
+
107
+ ### 浏览器
108
+
109
+ - [getStyle 获取节点样式](./docs/browserjs/getStyle.md)
110
+ - [onReady 解析完执行](./docs/browserjs/onReady.md)
111
+
112
+ ### 样式文件
113
+
114
+ > 统一浏览器样式 `normalize.css` 直接: `import 'oipage/stylecss/normalize.css'` 即可!
115
+
116
+ - [rasterize 十二栅格化](./docs/stylecss/rasterize.md)
117
+ - [skeleton 骨架屏动画](./docs/stylecss/skeleton.md)
118
+
119
+ ## 版权
120
+
121
+ MIT License
122
+
123
123
  Copyright (c) [zxl20070701](https://zxl20070701.github.io/notebook/home.html) 走一步,再走一步
package/bin/options.js CHANGED
@@ -1,74 +1,74 @@
1
- module.exports = {
2
-
3
- // 命令参数配置
4
- "options": {
5
- version: {
6
- short: 'v',
7
- info: '[0]Display the version of OIPage.',
8
- demo: 'oipage-cli --version|-v'
9
- },
10
- help: {
11
- short: 'h',
12
- info: '[1]Display this help text.',
13
- demo: 'oipage-cli --help|-h <term>'
14
- },
15
- server: {
16
- short: 's',
17
- info: '[2]Render source server.',
18
- demo: 'oipage-cli --server|-s [port|20000] [basePath|./]'
19
- },
20
- config: {
21
- short: 'c',
22
- info: '[3]Specify a configuration file.',
23
- demo: 'oipage-cli --config|-c ./OIPage.config.js'
24
- },
25
- delete: {
26
- info: '[4]Delete file or folder.',
27
- demo: 'oipage-cli --delete targetPath'
28
- },
29
- copy: {
30
- info: '[5]Copy file or folder.',
31
- demo: 'oipage-cli --copy sourcePath targetPath'
32
- },
33
- pick: {
34
- info: '[6]Copy all files in the folder to the specified location.',
35
- demo: 'oipage-cli --pick sourcePath targetPath'
36
- },
37
- move: {
38
- info: '[7]Move file or folder.',
39
- demo: 'oipage-cli --move sourcePath targetPath'
40
- },
41
- network: {
42
- info: '[8]Display network information.',
43
- demo: 'oipage-cli --network'
44
- },
45
- get: {
46
- info: '[9]HTTP GET.',
47
- demo: 'oipage-cli --get url'
48
- },
49
- post: {
50
- info: '[10]HTTP POST.',
51
- demo: 'oipage-cli --post url'
52
- },
53
- cat: {
54
- info: '[11]Show file.',
55
- demo: 'oipage-cli --cat path'
56
- },
57
- run: {
58
- info: '[12]Run multiple commands.',
59
- demo: 'oipage-cli --run \"commands1\" \"commands2\" \"commands3\"'
60
- }
61
- },
62
-
63
- // 帮助信息
64
- "help": `
65
- Usage: oipage-cli <command>
66
-
67
- Where <command> is one of:
68
- --help, -h, --server, -s, --version, -v, --config, -c, --delete, --copy, --pick, --move, --network, --get, --post, --cat
69
-
70
- oipage-cli --help|-h <term> search for help on <term>
71
- oipage-cli --help|-h involved overview
72
- `
73
-
1
+ module.exports = {
2
+
3
+ // 命令参数配置
4
+ "options": {
5
+ version: {
6
+ short: 'v',
7
+ info: '[0]Display the version of OIPage.',
8
+ demo: 'oipage-cli --version|-v'
9
+ },
10
+ help: {
11
+ short: 'h',
12
+ info: '[1]Display this help text.',
13
+ demo: 'oipage-cli --help|-h <term>'
14
+ },
15
+ server: {
16
+ short: 's',
17
+ info: '[2]Render source server.',
18
+ demo: 'oipage-cli --server|-s [port|20000] [basePath|./]'
19
+ },
20
+ config: {
21
+ short: 'c',
22
+ info: '[3]Specify a configuration file.',
23
+ demo: 'oipage-cli --config|-c ./OIPage.config.js'
24
+ },
25
+ delete: {
26
+ info: '[4]Delete file or folder.',
27
+ demo: 'oipage-cli --delete targetPath'
28
+ },
29
+ copy: {
30
+ info: '[5]Copy file or folder.',
31
+ demo: 'oipage-cli --copy sourcePath targetPath'
32
+ },
33
+ pick: {
34
+ info: '[6]Copy all files in the folder to the specified location.',
35
+ demo: 'oipage-cli --pick sourcePath targetPath'
36
+ },
37
+ move: {
38
+ info: '[7]Move file or folder.',
39
+ demo: 'oipage-cli --move sourcePath targetPath'
40
+ },
41
+ network: {
42
+ info: '[8]Display network information.',
43
+ demo: 'oipage-cli --network'
44
+ },
45
+ get: {
46
+ info: '[9]HTTP GET.',
47
+ demo: 'oipage-cli --get url'
48
+ },
49
+ post: {
50
+ info: '[10]HTTP POST.',
51
+ demo: 'oipage-cli --post url'
52
+ },
53
+ cat: {
54
+ info: '[11]Show file.',
55
+ demo: 'oipage-cli --cat path'
56
+ },
57
+ run: {
58
+ info: '[12]Run multiple commands.',
59
+ demo: 'oipage-cli --run \"commands1\" \"commands2\" \"commands3\"'
60
+ }
61
+ },
62
+
63
+ // 帮助信息
64
+ "help": `
65
+ Usage: oipage-cli <command>
66
+
67
+ Where <command> is one of:
68
+ --help, -h, --server, -s, --version, -v, --config, -c, --delete, --copy, --pick, --move, --network, --get, --post, --cat
69
+
70
+ oipage-cli --help|-h <term> search for help on <term>
71
+ oipage-cli --help|-h involved overview
72
+ `
73
+
74
74
  };