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
/
logout.js
11 lines
(10 loc)
•
236 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
{ set } =
require
(
'../utils/config'
);
const
chalk =
require
(
'chalk'
);
module
.
exports
= {
command
:
'logout'
,
desc
:
'退出登陆'
,
handler
(
argv
) {
set
(
'token'
,
null
);
console
.
log
(chalk.
green
(
'退出登陆成功!'
)); } };