FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
coderwhy-cli/index.js at main · coderwhy/coderwhy-cli · GitHub
coderwhy
/
coderwhy-cli
Public
Notifications
You must be signed in to change notification settings
Fork
55
Star
311
Code
Issues
7
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
coderwhy-cli
/
index.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
21 lines (12 loc) · 383 Bytes
Breadcrumbs
coderwhy-cli
/
index.js
Copy path
File metadata and controls
executable file
·
21 lines (12 loc) · 383 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env node
const
program
=
require
(
'commander'
)
;
const
helpOptions
=
require
(
'./lib/core/help'
)
;
const
createCommands
=
require
(
'./lib/core/create'
)
;
// 定义显示模块的版本号
program
.
version
(
require
(
'./package.json'
)
.
version
)
;
// 给help增加其他选项
helpOptions
(
)
;
// 创建命令
createCommands
(
)
;
// 解析终端指令
program
.
parse
(
process
.
argv
)
;
Back
|
FazBrowse Home
|
New Git URL