Skip to content

Commit 6fbc09c

Browse files
authored
chore(cli): make init follow-up prompt less detailed (#3687)
Make init follow-up prompt less detailed to be consistent with the deploy prompt below and in case they don't have a profile named "default". Related to #3685 By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
1 parent a944b79 commit 6fbc09c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

internal/pkg/cli/init.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ import (
3636
)
3737

3838
const (
39-
defaultEnvironmentName = "test"
40-
defaultEnvironmentProfile = "default"
39+
defaultEnvironmentName = "test"
4140
)
4241

4342
const (
@@ -473,8 +472,7 @@ func BuildInitCmd() *cobra.Command {
473472
}
474473
if !opts.ShouldDeploy {
475474
log.Info("\nNo problem, you can deploy your service later:\n")
476-
log.Infof("- Run %s to create your staging environment.\n",
477-
color.HighlightCode(fmt.Sprintf("copilot env init --name %s --profile %s --app %s", defaultEnvironmentName, defaultEnvironmentProfile, *opts.appName)))
475+
log.Infof("- Run %s to create your environment.\n", color.HighlightCode("copilot env init"))
478476
log.Infof("- Run %s to deploy your service.\n", color.HighlightCode("copilot deploy"))
479477
}
480478
log.Infoln(`- Be a part of the Copilot ✨community✨!

0 commit comments

Comments
 (0)