Skip to content

Commit 993ba82

Browse files
authored
Shorten template descriptions (#916)
1 parent a192f04 commit 993ba82

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.nls.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@
232232
"AWS.samcli.initWizard.template.eventBridge_helloWorld.name": "AWS SAM EventBridge Hello World",
233233
"AWS.samcli.initWizard.template.eventBridge_starterApp.name": "AWS SAM EventBridge App from Scratch",
234234
"AWS.samcli.initWizard.template.helloWorld.description": "A basic SAM app",
235-
"AWS.samcli.initWizard.template.eventBridge_helloWorld.description": "A Hello World app for Amazon EventBridge that invokes a Lambda for every EC2 instance state change in your account",
236-
"AWS.samcli.initWizard.template.eventBridge_starterApp.description": "A starter app for Amazon EventBridge that invokes a Lambda based on a dynamic event trigger for an EventBridge Schema of your choice",
235+
"AWS.samcli.initWizard.template.eventBridge_helloWorld.description": "Invokes a Lambda for every EC2 instance state change in your account",
236+
"AWS.samcli.initWizard.template.eventBridge_starterApp.description": "Invokes a Lambda based on a dynamic event trigger for an EventBridge Schema of your choice",
237237
"AWS.samcli.initWizard.schemas.region.prompt": "Select an EventBridge Schemas Region",
238238
"AWS.samcli.initWizard.schemas.registry.prompt": "Select a Registry",
239239
"AWS.samcli.initWizard.schemas.registry.failed_to_load_resources": "Error loading registries.",

src/lambda/models/samTemplates.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ export function getTemplateDescription(template: SamTemplate): string {
5656
case eventBridgeHelloWorldTemplate:
5757
return localize(
5858
'AWS.samcli.initWizard.template.eventBridge_helloWorld.description',
59-
'A Hello World app for Amazon EventBridge that invokes a Lambda for every EC2 instance state change in your account'
59+
'Invokes a Lambda for every EC2 instance state change in your account'
6060
)
6161
case eventBridgeStarterAppTemplate:
6262
return localize(
6363
'AWS.samcli.initWizard.template.eventBridge_starterApp.description',
64-
'A starter app for Amazon EventBridge that invokes a Lambda based on a dynamic event trigger for an EventBridge Schema of your choice'
64+
'Invokes a Lambda based on a dynamic event trigger for an EventBridge Schema of your choice'
6565
)
6666
default:
6767
throw new Error(`No description found for template ${template}`)

src/lambda/wizards/samInitWizard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class DefaultCreateNewSamAppWizardContext extends WizardContext implement
115115
items: templates.toArray().map(template => ({
116116
label: template,
117117
alwaysShow: template === currTemplate,
118-
description:
118+
detail:
119119
template === currTemplate
120120
? localize('AWS.wizard.selectedPreviously', 'Selected Previously')
121121
: getTemplateDescription(template)

0 commit comments

Comments
 (0)