Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/angular/cli/src/commands/deploy/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ export default class DeployCommandModule
command = 'deploy [project]';
override longDescription = longDescription;
describe =
'Invokes the deploy builder for a specified project or for the default project in the workspace.';
'Invokes the deploy builder for a specified project or for the project in the current working directory.';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The short description is slightly incomplete compared to the actual resolution logic and the updated long description. If a project name is not supplied, the CLI first attempts to run the builder for the only project in the workspace that has a deploy target, before falling back to the project in the current working directory. Updating the short description to mention this makes it more accurate and helpful for users running the command from the workspace root.

Suggested change
'Invokes the deploy builder for a specified project or for the project in the current working directory.';
'Invokes the deploy builder for a specified project, the only project with a deploy target, or the project in the current working directory.';

}
3 changes: 2 additions & 1 deletion packages/angular/cli/src/commands/deploy/long-description.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
The command takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file.
When a project name is not supplied, executes the `deploy` builder for the default project.
When a project name is not supplied, executes the `deploy` builder for the only project that has a `deploy` target,
or for the project in the current working directory.

To use the `ng deploy` command, use `ng add` to add a package that implements deployment capabilities to your favorite platform.
Adding the package automatically updates your workspace configuration, adding a deployment
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/cli/src/commands/new/long-description.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Creates and initializes a new Angular application that is the default project for a new workspace.
Creates and initializes a new Angular workspace with an initial application.

Provides interactive prompts for optional configuration, such as adding routing support.
All prompts can safely be allowed to default.
Expand Down
Loading