Skip to content

Commit

Permalink
fix: change deprecation messages to avoid undefined command id (#779)
Browse files Browse the repository at this point in the history
* fix: change deprecation messages to avoid undefined command id

* chore: deprecate source:push
  • Loading branch information
WillieRuemmele authored Mar 23, 2023
1 parent 4a26621 commit e8e0aca
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 12 deletions.
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

0 comments on commit e8e0aca

Please sign in to comment.