UNPKG
cybertron-utils
Version:
latest (0.1.1)
0.1.1
0.1.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
cybertron components manage
github.com/iamtang/cybertron
iamtang/cybertron
cybertron-utils
/
cmds
/
set.js
12 lines
(10 loc)
•
252 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
const
{ set } =
require
(
'../utils/config'
);
const
chalk =
require
(
'chalk'
);
module
.
exports
= {
command
:
'set-url <url>'
,
desc
:
'设置源地址'
,
handler
(
argv
) {
set
(
'url'
, argv.
url
);
console
.
log
(chalk.
green
(
'设置源地址成功!'
)); } };