Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change deprecation messages to avoid undefined command id #779

Merged
merged 2 commits into from
Mar 23, 2023
Merged
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 messages/cancel.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The cancel command failed due to: %s

# deprecation

The '<%= command.id %>' command will be deprecated. Try using the %s command instead.
This command will be deprecated. Try using the '%s' command instead.
2 changes: 1 addition & 1 deletion messages/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,4 @@ You requested an async deploy with code coverage or JUnit results. The reports w

# deprecation

The '<%= command.id %>' command will be deprecated. Try using the %s command instead.
This command will be deprecated. Try using the '%s' command instead.
2 changes: 1 addition & 1 deletion messages/ignored_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ File or directory '%s' doesn't exist in your project. Specify one that exists an

# deprecation

The '<%= command.id %>' command will be deprecated. Try using the %s command instead.
This command will be deprecated. Try using the '%s' command instead.
2 changes: 1 addition & 1 deletion messages/md.cancel.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ The cancel command failed due to: %s

# deprecation

The '<%= command.id %>' command will be deprecated. Try using the %s command instead.
This command will be deprecated. Try using the '%s' command instead.
2 changes: 1 addition & 1 deletion messages/md.deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,4 @@ You requested an async deploy with code coverage or JUnit results. The reports w

# deprecation

The '<%= command.id %>' command will be deprecated. Try using the %s command instead.
This command will be deprecated. Try using the '%s' command instead.
2 changes: 1 addition & 1 deletion messages/md.deployreport.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ Using specified username %s

# deprecation

The '<%= command.id %>' command will be deprecated. Try using the %s command instead.
This command will be deprecated. Try using the '%s' command instead.
2 changes: 1 addition & 1 deletion messages/md.retrieve.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ If the retrieve request has completed, the retrieved metadata zip file will be w

# deprecation

The '<%= command.id %>' command will be deprecated. Try using the %s command instead.
This command will be deprecated. Try using the '%s' command instead.
2 changes: 1 addition & 1 deletion messages/pull.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ Your retrieve request did not complete within the specified wait time [%s minute

# deprecation

The '<%= command.id %>' command will be deprecated. Try using the %s command instead.
This command will be deprecated. Try using the '%s' command instead.
2 changes: 1 addition & 1 deletion messages/push.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ Check the order of your dependencies and ensure all metadata is included.

# deprecation

The '<%= command.id %>' command will be deprecated. Try using the %s command instead.
This command will be deprecated. Try using the '%s' command instead.
2 changes: 1 addition & 1 deletion messages/report.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ The metadata deploy operation failed.

# deprecation

The '<%= command.id %>' command will be deprecated. Try using the %s command instead.
This command will be deprecated. Try using the '%s' command instead.
2 changes: 1 addition & 1 deletion messages/retrieve.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,4 @@ The retrieve target directory [%s] overlaps one of your package directories. Spe

# deprecation

The '<%= command.id %>' command will be deprecated. Try using the %s command instead.
This command will be deprecated. Try using the '%s' command instead.
2 changes: 1 addition & 1 deletion messages/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ No local or remote changes found.

# deprecation

The '<%= command.id %>' command will be deprecated. Try using the %s command instead.
This command will be deprecated. Try using the '%s' command instead.
1 change: 1 addition & 0 deletions src/commands/force/source/push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const deployMessages = Messages.loadMessages('@salesforce/plugin-source', 'deplo
const replacement = 'project deploy start';

export default class Push extends DeployCommand {
public static readonly state = 'deprecated';
public static readonly deprecationOptions = {
to: replacement,
message: messages.getMessage('deprecation', [replacement]),
Expand Down