Skip to content

Commit 5d70081

Browse files
authored
chore(assets): don't use flag default for service-name (#333)
1 parent 055cac7 commit 5d70081

File tree

1 file changed

+2
-2
lines changed
  • packages/plugin-assets/src/commands/assets

1 file changed

+2
-2
lines changed

packages/plugin-assets/src/commands/assets/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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',

0 commit comments

Comments
 (0)