Skip to content

Commit a100c34

Browse files
committed
feat: deprecation date notice
1 parent fd135f5 commit a100c34

File tree

13 files changed

+20
-11
lines changed

13 files changed

+20
-11
lines changed

messages/cancel.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ The cancel command failed due to: %s
3636

3737
# deprecation
3838

39-
We plan to deprecate this command in the future. Try using the "%s" command instead.
39+
This command is deprecated and will be removed from the CLI on November 6, 2024. Use the "%s" command instead.

messages/deploy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,4 +273,4 @@ You requested an async deploy with code coverage or JUnit results. The reports w
273273

274274
# deprecation
275275

276-
We plan to deprecate this command in the future. Try using the "%s" command instead.
276+
This command is deprecated and will be removed from the CLI on November 6, 2024. Use the "%s" command instead.

messages/md.cancel.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ The cancel command failed due to: %s.
3636

3737
# deprecation
3838

39-
We plan to deprecate this command in the future. Try using the "%s" command instead.
39+
This command is deprecated and will be removed from the CLI on November 6, 2024. Use the "%s" command instead.

messages/md.deploy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,4 @@ You requested an async deploy with code coverage or JUnit results. The reports w
197197

198198
# deprecation
199199

200-
We plan to deprecate this command in the future. Try using the "%s" command instead.
200+
This command is deprecated and will be removed from the CLI on November 6, 2024. Use the "%s" command instead.

messages/md.deployreport.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ Using specified username %s.
5454

5555
# deprecation
5656

57-
We plan to deprecate this command in the future. Try using the "%s" and "%s" pair instead.
57+
This command is deprecated and will be removed from the CLI on November 6, 2024. Use the "%s" and "%s" pair instead.

messages/md.retrieve.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,4 @@ If the retrieve request has completed, the retrieved metadata zip file will be w
117117

118118
# deprecation
119119

120-
We plan to deprecate this command in the future. Try using the "%s" command instead.
120+
This command is deprecated and will be removed from the CLI on November 6, 2024. Use the "%s" command instead.

messages/pull.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ Your retrieve request did not complete within the specified wait time [%s minute
6262

6363
# deprecation
6464

65-
We plan to deprecate this command in the future. Try using the "%s" command instead.
65+
This command is deprecated and will be removed from the CLI on November 6, 2024. Use the "%s" command instead.

messages/push.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ Check the order of your dependencies and ensure all metadata is included.
5050

5151
# deprecation
5252

53-
We plan to deprecate this command in the future. Try using the "%s" command instead.
53+
This command is deprecated and will be removed from the CLI on November 6, 2024. Use the "%s" command instead.

messages/report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ The metadata deploy operation failed.
5050

5151
# deprecation
5252

53-
We plan to deprecate this command in the future. Try using the "%s" and "%s" pair instead.
53+
This command is deprecated and will be removed from the CLI on November 6, 2024. Use the "%s" and "%s" pair instead.

messages/retrieve.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,4 @@ The retrieve target directory [%s] overlaps one of your package directories. Spe
193193

194194
# deprecation
195195

196-
We plan to deprecate this command in the future. Try using the "%s" command instead.
196+
This command is deprecated and will be removed from the CLI on November 6, 2024. Use the "%s" command instead.

messages/status.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ No local or remote changes found.
3434

3535
# deprecation
3636

37-
We plan to deprecate this command in the future. Try using the "%s" command instead.
37+
This command is deprecated and will be removed from the CLI on November 6, 2024. Use the "%s" command instead.

src/commands/force.ts

+5
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ export type ForceCommandResult = { apiVersion: string };
7474
export class ForceCommand extends SfCommand<ForceCommandResult> {
7575
public static readonly hidden = true;
7676
public static readonly examples = [];
77+
public static state = 'deprecated';
78+
public static readonly deprecationOptions = {
79+
message:
80+
'The Salesforce CLI does ship an API version. You can use "org display" to see the API version of any org.',
81+
};
7782
// eslint-disable-next-line sf-plugin/no-hardcoded-messages-commands
7883
public static readonly summary = 'Display the ASCII art logo for the Salesforce CLI';
7984

src/commands/force/mdapi/retrieve/report.ts

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ export class Report extends SourceCommand {
3333
public static readonly description = messages.getMessage('report.description');
3434
public static readonly examples = messages.getMessages('report.examples');
3535
public static readonly state = 'deprecated';
36+
public static readonly deprecationOptions = {
37+
to: 'project retrieve report',
38+
message: messages.getMessage('deprecation', ['project retrieve report']),
39+
};
3640
public static readonly hidden = true;
3741
public static readonly flags = {
3842
'api-version': orgApiVersionFlagWithDeprecations,

0 commit comments

Comments
 (0)