Skip to content

Commit 690bc1f

Browse files
committed
Update help text
1 parent 2bae18c commit 690bc1f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

cli/azd/cmd/testdata/TestUsage-azd-publish.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
Publish your project to Azure Container Registry.
2+
Publish a service to a container registry.
33

44
Only works with Container App services.
55

cli/azd/cmd/testdata/TestUsage-azd.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Commands
1414
deploy : Deploy your project code to Azure.
1515
down : Delete your project's Azure resources.
1616
provision : Provision Azure resources for your project.
17-
publish : Publish your project to Azure Container Registry.
17+
publish : Publish a service to a container registry.
1818

1919
Manage and show settings
2020
completion : Generate shell completion scripts.

cli/azd/internal/cmd/deploy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ func (da *DeployAction) Run(ctx context.Context) (*actions.ActionResult, error)
350350

351351
messageHeader := fmt.Sprintf("Your application was deployed to Azure in %s.", ux.DurationAsText(since(startTime)))
352352
if da.flags.PublishOnly {
353-
messageHeader = fmt.Sprintf("Your application was published to Azure Container Registry in %s.",
353+
messageHeader = fmt.Sprintf("Your application was published to the container registry in %s.",
354354
ux.DurationAsText(since(startTime)))
355355
}
356356

cli/azd/internal/cmd/publish.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (f *PublishFlags) Bind(local *pflag.FlagSet, global *internal.GlobalCommand
3434
f.deploy.BindNonCommon(local, global)
3535
f.deploy.bindCommon(local, global)
3636

37-
// Add the --tag flag specific to publish command
37+
// Add the --image flag specific to publish command
3838
local.StringVar(
3939
&f.Image,
4040
"image",
@@ -76,7 +76,7 @@ func NewPublishFlags(cmd *cobra.Command, global *internal.GlobalCommandOptions)
7676
func NewPublishCmd() *cobra.Command {
7777
cmd := &cobra.Command{
7878
Use: "publish <service>",
79-
Short: "Publish your project to Azure Container Registry.",
79+
Short: "Publish a service to a container registry.",
8080
}
8181
cmd.Args = cobra.MaximumNArgs(1)
8282
return cmd
@@ -172,7 +172,7 @@ func (p *publishActionWrapper) Run(ctx context.Context) (*actions.ActionResult,
172172

173173
func GetCmdPublishHelpDescription(*cobra.Command) string {
174174
return generateCmdHelpDescription(
175-
"Publish your project to Azure Container Registry.",
175+
"Publish a service to a container registry.",
176176
[]string{
177177
formatHelpNote("Only works with Container App services."),
178178
})

0 commit comments

Comments
 (0)