Skip to content

Commit

Permalink
fix(cli): code format
Browse files Browse the repository at this point in the history
  • Loading branch information
ysfscream committed Jul 10, 2024
1 parent 477d709 commit 93fb54c
Showing 1 changed file with 42 additions and 7 deletions.
49 changes: 42 additions & 7 deletions cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ export class Commander {
.option('-k, --keepalive <SEC>', 'send a ping every SEC seconds', parseNumber, 30)
.option('-u, --username <USER>', 'the username', state.getConfig('username'))
.option('-P, --password <PASS>', 'the password', state.getConfig('password'))
.option('-l, --protocol <PROTO>', 'the protocol to use, mqtt, mqtts, ws, or wss', parseProtocol, state.getConfig('protocol'))
.option(
'-l, --protocol <PROTO>',
'the protocol to use, mqtt, mqtts, ws, or wss',
parseProtocol,
state.getConfig('protocol'),
)
.option('--path <PATH>', 'the path of websocket', '/mqtt')
.option('--key <PATH>', 'path to the key file')
.option('--cert <PATH>', 'path to the cert file')
Expand Down Expand Up @@ -168,7 +173,12 @@ export class Commander {
.option('-k, --keepalive <SEC>', 'send a ping every SEC seconds', parseNumber, 30)
.option('-u, --username <USER>', 'the username', state.getConfig('username'))
.option('-P, --password <PASS>', 'the password', state.getConfig('password'))
.option('-l, --protocol <PROTO>', 'the protocol to use, mqtt, mqtts, ws, or wss', parseProtocol, state.getConfig('protocol'))
.option(
'-l, --protocol <PROTO>',
'the protocol to use, mqtt, mqtts, ws, or wss',
parseProtocol,
state.getConfig('protocol'),
)
.option('--path <PATH>', 'the path of websocket', '/mqtt')
.option('--key <PATH>', 'path to the key file')
.option('--cert <PATH>', 'path to the cert file')
Expand Down Expand Up @@ -273,7 +283,12 @@ export class Commander {

.option('-u, --username <USER>', 'the username', state.getConfig('username'))
.option('-P, --password <PASS>', 'the password', state.getConfig('password'))
.option('-l, --protocol <PROTO>', 'the protocol to use, mqtt, mqtts, ws, or wss', parseProtocol, state.getConfig('protocol'))
.option(
'-l, --protocol <PROTO>',
'the protocol to use, mqtt, mqtts, ws, or wss',
parseProtocol,
state.getConfig('protocol'),
)
.option('--path <PATH>', 'the path of websocket', '/mqtt')
.option('--key <PATH>', 'path to the key file')
.option('--cert <PATH>', 'path to the cert file')
Expand Down Expand Up @@ -368,7 +383,12 @@ export class Commander {
.option('-k, --keepalive <SEC>', 'send a ping every SEC seconds', parseNumber, 30)
.option('-u, --username <USER>', 'the username', state.getConfig('username'))
.option('-P, --password <PASS>', 'the password', state.getConfig('password'))
.option('-l, --protocol <PROTO>', 'the protocol to use, mqtt, mqtts, ws, or wss', parseProtocol, state.getConfig('protocol'))
.option(
'-l, --protocol <PROTO>',
'the protocol to use, mqtt, mqtts, ws, or wss',
parseProtocol,
state.getConfig('protocol'),
)
.option('--path <PATH>', 'the path of websocket', '/mqtt')
.option('--key <PATH>', 'path to the key file')
.option('--cert <PATH>', 'path to the cert file')
Expand Down Expand Up @@ -478,7 +498,12 @@ export class Commander {
.option('-k, --keepalive <SEC>', 'send a ping every SEC seconds', parseNumber, 30)
.option('-u, --username <USER>', 'the username', state.getConfig('username'))
.option('-P, --password <PASS>', 'the password', state.getConfig('password'))
.option('-l, --protocol <PROTO>', 'the protocol to use, mqtt, mqtts, ws, or wss', parseProtocol, state.getConfig('protocol'))
.option(
'-l, --protocol <PROTO>',
'the protocol to use, mqtt, mqtts, ws, or wss',
parseProtocol,
state.getConfig('protocol'),
)
.option('--path <PATH>', 'the path of websocket', '/mqtt')
.option('--key <PATH>', 'path to the key file')
.option('--cert <PATH>', 'path to the cert file')
Expand Down Expand Up @@ -576,7 +601,12 @@ export class Commander {

.option('-u, --username <USER>', 'the username', state.getConfig('username'))
.option('-P, --password <PASS>', 'the password', state.getConfig('password'))
.option('-l, --protocol <PROTO>', 'the protocol to use, mqtt, mqtts, ws, or wss', parseProtocol, state.getConfig('protocol'))
.option(
'-l, --protocol <PROTO>',
'the protocol to use, mqtt, mqtts, ws, or wss',
parseProtocol,
state.getConfig('protocol'),
)
.option('--path <PATH>', 'the path of websocket', '/mqtt')
.option('--key <PATH>', 'path to the key file')
.option('--cert <PATH>', 'path to the cert file')
Expand Down Expand Up @@ -688,7 +718,12 @@ export class Commander {
.option('-k, --keepalive <SEC>', 'send a ping every SEC seconds', parseNumber, 30)
.option('-u, --username <USER>', 'the username', state.getConfig('username'))
.option('-P, --password <PASS>', 'the password', state.getConfig('password'))
.option('-l, --protocol <PROTO>', 'the protocol to use, mqtt, mqtts, ws, or wss', parseProtocol, state.getConfig('protocol'))
.option(
'-l, --protocol <PROTO>',
'the protocol to use, mqtt, mqtts, ws, or wss',
parseProtocol,
state.getConfig('protocol'),
)
.option('--path <PATH>', 'the path of websocket', '/mqtt')
.option('--key <PATH>', 'path to the key file')
.option('--cert <PATH>', 'path to the cert file')
Expand Down

0 comments on commit 93fb54c

Please sign in to comment.