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 {
1616 accountSid : this . currentProfile . accountSid ,
1717 pluginConfig : pluginConfig ,
1818 logger : this . logger ,
19- serviceName : this . flags [ 'service-name' ] ,
19+ serviceName :
20+ this . flags [ 'service-name' ] . trim ( ) || generateProjectName ( ) . dashed ,
2021 } ) ;
2122 this . output ( result , this . flags . properties ) ;
2223 } catch ( error ) {
@@ -29,7 +30,6 @@ InitCommand.flags = {
2930 'service-name' : flags . string ( {
3031 description :
3132 'A unique name for your asset service. May only contain alphanumeric characters and hyphens.' ,
32- default : ( ) => generateProjectName ( ) . dashed ,
3333 } ) ,
3434 properties : flags . string ( {
3535 default : 'service_sid, sid, domain_name' ,
You can’t perform that action at this time.
0 commit comments