1
- const { TwilioClientCommand } = require ( " @twilio/cli-core" ) . baseCommands ;
1
+ const { TwilioClientCommand } = require ( ' @twilio/cli-core' ) . baseCommands ;
2
2
3
- const { handler, cliInfo, describe } = require ( " twilio-run/dist/commands/list" ) ;
3
+ const { handler, cliInfo, describe } = require ( ' twilio-run/dist/commands/list' ) ;
4
4
const {
5
5
convertYargsOptionsToOclifFlags,
6
6
normalizeFlags,
7
7
createExternalCliOptions,
8
8
getRegionAndEdge,
9
- } = require ( "../../utils" ) ;
9
+ } = require ( '../../utils' ) ;
10
+
11
+ const { flags, aliasMap } = convertYargsOptionsToOclifFlags ( cliInfo . options ) ;
10
12
11
13
class FunctionsList extends TwilioClientCommand {
12
14
async run ( ) {
13
15
await super . run ( ) ;
14
16
15
17
let { flags, args } = this . parse ( FunctionsList ) ;
16
- flags = normalizeFlags ( flags ) ;
18
+ flags = normalizeFlags ( flags , aliasMap ) ;
17
19
18
20
const externalOptions = createExternalCliOptions ( flags , this . twilioClient ) ;
19
21
@@ -30,17 +32,16 @@ FunctionsList.description = describe;
30
32
31
33
FunctionsList . args = [
32
34
{
33
- name : " types" ,
35
+ name : ' types' ,
34
36
required : false ,
35
37
default : cliInfo . argsDefaults . types ,
36
38
description :
37
- " Comma separated list of things to list (services,environments,functions,assets,variables)" ,
39
+ ' Comma separated list of things to list (services,environments,functions,assets,variables)' ,
38
40
} ,
39
41
] ;
40
42
41
- FunctionsList . flags = Object . assign (
42
- convertYargsOptionsToOclifFlags ( cliInfo . options ) ,
43
- { profile : TwilioClientCommand . flags . profile }
44
- ) ;
43
+ FunctionsList . flags = Object . assign ( flags , {
44
+ profile : TwilioClientCommand . flags . profile ,
45
+ } ) ;
45
46
46
47
module . exports = FunctionsList ;
0 commit comments