File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/plugin-assets/src/commands/assets Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ class InitCommand extends TwilioClientCommand {
16
16
accountSid : this . currentProfile . accountSid ,
17
17
pluginConfig : pluginConfig ,
18
18
logger : this . logger ,
19
- serviceName : this . flags [ 'service-name' ] ,
19
+ serviceName :
20
+ this . flags [ 'service-name' ] . trim ( ) || generateProjectName ( ) . dashed ,
20
21
} ) ;
21
22
this . output ( result , this . flags . properties ) ;
22
23
} catch ( error ) {
@@ -29,7 +30,6 @@ InitCommand.flags = {
29
30
'service-name' : flags . string ( {
30
31
description :
31
32
'A unique name for your asset service. May only contain alphanumeric characters and hyphens.' ,
32
- default : ( ) => generateProjectName ( ) . dashed ,
33
33
} ) ,
34
34
properties : flags . string ( {
35
35
default : 'service_sid, sid, domain_name' ,
You can’t perform that action at this time.
0 commit comments