Skip to content

Commit

Permalink
chore(assets): don't use flag default for service-name (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
philnash authored Aug 5, 2021
1 parent 055cac7 commit 5d70081
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-assets/src/commands/assets/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class InitCommand extends TwilioClientCommand {
accountSid: this.currentProfile.accountSid,
pluginConfig: pluginConfig,
logger: this.logger,
serviceName: this.flags['service-name'],
serviceName:
this.flags['service-name'].trim() || generateProjectName().dashed,
});
this.output(result, this.flags.properties);
} catch (error) {
Expand All @@ -29,7 +30,6 @@ InitCommand.flags = {
'service-name': flags.string({
description:
'A unique name for your asset service. May only contain alphanumeric characters and hyphens.',
default: () => generateProjectName().dashed,
}),
properties: flags.string({
default: 'service_sid, sid, domain_name',
Expand Down

0 comments on commit 5d70081

Please sign in to comment.