Skip to content

Commit 07089bd

Browse files
authored
chore: format recommended actions slightly more inward (#2792)
🥺 By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 0620d73 commit 07089bd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

internal/pkg/cli/cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ func logRecommendedActions(actions []string) {
122122
return
123123
}
124124
log.Infoln(fmt.Sprintf("Recommended follow-up %s:", english.PluralWord(len(actions), "action", "actions")))
125-
prefix := "- "
125+
prefix := " -"
126126
if len(actions) == 1 {
127-
prefix = " "
127+
prefix = " "
128128
}
129129
for _, followup := range actions {
130130
log.Infof("%s %s\n", prefix, followup)

internal/pkg/cli/svc_deploy.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ func (o *deploySvcOpts) uriRecommendedActions() ([]string, error) {
841841
}
842842
if o.rdSvcAlias != "" {
843843
recs = append(recs, fmt.Sprintf(`The validation process for https://%s can take more than 15 minutes.
844-
Please visit %s to check the validation status.`, o.rdSvcAlias, color.Emphasize("https://console.aws.amazon.com/apprunner/home")))
844+
Please visit %s to check the validation status.`, o.rdSvcAlias, color.Emphasize("https://console.aws.amazon.com/apprunner/home")))
845845
}
846846
return recs, nil
847847
}
@@ -856,7 +856,7 @@ func (o *deploySvcOpts) subscribeRecommendedActions() []string {
856856
retrieveEnvVarCode := "const eventsQueueURI = process.env.COPILOT_QUEUE_URI"
857857
actionRetrieveEnvVar := fmt.Sprintf(
858858
`Update %s's code to leverage the injected environment variable "COPILOT_QUEUE_URI".
859-
In JavaScript you can write %s.`,
859+
In JavaScript you can write %s.`,
860860
o.name,
861861
color.HighlightCode(retrieveEnvVarCode),
862862
)
@@ -868,7 +868,7 @@ func (o *deploySvcOpts) subscribeRecommendedActions() []string {
868868
retrieveTopicQueueEnvVarCode := fmt.Sprintf("const {%s} = JSON.parse(process.env.COPILOT_TOPIC_QUEUE_URIS)", topicQueueNames)
869869
actionRetrieveTopicQueues := fmt.Sprintf(
870870
`You can retrieve topic-specific queues by writing
871-
%s.`,
871+
%s.`,
872872
color.HighlightCode(retrieveTopicQueueEnvVarCode),
873873
)
874874
recs = append(recs, actionRetrieveTopicQueues)
@@ -889,7 +889,7 @@ func (o *deploySvcOpts) publishRecommendedActions() []string {
889889

890890
return []string{
891891
fmt.Sprintf(`Update %s's code to leverage the injected environment variable "COPILOT_SNS_TOPIC_ARNS".
892-
In JavaScript you can write %s.`,
892+
In JavaScript you can write %s.`,
893893
o.name,
894894
color.HighlightCode("const {<topicName>} = JSON.parse(process.env.COPILOT_SNS_TOPIC_ARNS)")),
895895
}

0 commit comments

Comments
 (0)