webide-cli 0.0.1-alpha.2 → 0.0.1-alpha.4

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 (3) hide show
  1. package/README.md +24 -0
  2. package/index.js +10 -9
  3. package/package.json +2 -1
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # WebIDE CLI命令行工具
2
+ QQ群:1050254184
3
+
4
+ # 安装
5
+ 1. 安装NodeJS和NPM:
6
+ ```bash
7
+ apk add nodejs
8
+ apk add npm
9
+ # 验证是否已安装
10
+ node -v
11
+ npm -v
12
+ ```
13
+ 2. 安装CLI工具:
14
+ ```bash
15
+ npm install -g webide-cli
16
+ ```
17
+ 3. 验证是否安装成功:
18
+ ```bash
19
+ webide -v
20
+ ```
21
+ 4. 获取相关帮助:
22
+ ```bash
23
+ webide -h
24
+ ```
package/index.js CHANGED
@@ -3,15 +3,16 @@ const { program } = require('commander');
3
3
  const { version } = require('./package.json');
4
4
 
5
5
  program
6
+ .name('webide')
7
+ .description('A CLI for NEW WebIDE.\nJoin QQ group 1050254184 for help and feedback.')
6
8
  .version(version)
7
- .command('init', 'Initialize a new project')
8
- .command('build', 'Build the project')
9
- .command('run', 'Run the project')
10
- .command('deploy', 'Deploy the project')
11
- .command('help', 'Show help')
12
- .parse(process.argv);
13
9
 
14
- const args = program.opts();
10
+ program
11
+ .command('hello')
12
+ .description('Welcome to WebIDE CLI!')
13
+ .action(() => {
14
+ console.log("Welcome to WebIDE CLI!");
15
+ });
15
16
 
16
- console.log("Welcome to WebIDE CLI!");
17
- console.log(process.cwd());
17
+ program
18
+ .parse(process.argv);
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "webide-cli",
3
- "version": "0.0.1-alpha.2",
3
+ "version": "0.0.1-alpha.4",
4
4
  "description": "A CLI for NEW WebIDE",
5
5
  "keywords": [
6
6
  "WebIDE",
7
+ "CLI",
7
8
  "IFTC",
8
9
  "VV"
9
10
  ],