Skip to content

Commit bd19e59

Browse files
committed
fix: change command to push-upgrade
1 parent 25f19d8 commit bd19e59

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

messages/package_pushupgrade_schedule.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Date and time (UTC) when the push upgrade is processed. Set to the earliest time
2929

3030
# flags.org-file.summary
3131

32-
The filename of the .csv file that contains the list of orgs that need the package upgrade.
32+
Filename of the CSV file that contains the list of orgs that need the package upgrade.
3333

3434
# flags.org-list.summary
3535

@@ -41,23 +41,24 @@ Invalid package version.
4141

4242
# error.empty-org-list
4343

44-
Org list file is empty.
44+
Can’t schedule the package push upgrade. The
45+
org file you specified is empty. Review the file you specified, and retry this command.
4546

4647
# error.empty-org-input
4748

48-
Org list input is empty.
49+
There are no org Ids.
4950

5051
# error.invalid-org-file
5152

52-
Org list file is invalid.
53+
Can’t schedule the package push upgrade. The org file you specified is invalid. The org file must be a CSV file, and each row can contain only one org ID. Review and update your org file and retry this command.
5354

5455
# error.invalid-org-input
5556

56-
Org list has invalid org IDs.
57+
Can’t schedule the package push upgrade. One or more of the orgs IDs you specified in the org list is an invalid org ID. Review the list of orgs you specified, and retry this command
5758

5859
# error.no-org-file-or-org-list-input
5960

60-
Either org list file or org list input must be supplied.
61+
Can’t schedule the package push upgrade. You must specify either a list of orgs, or a file containing the list of orgs to be upgraded. Retry this command using either --org-list or --org-file flag and include the required details.
6162

6263
# examples
6364

src/commands/package/pushupgrade/list.ts renamed to src/commands/package/push-upgrade/list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class PackagePushRequestListCommand extends SfCommand<PackagePushRequestL
2222
public static readonly examples = messages.getMessages('examples');
2323
public static readonly hidden = true;
2424
public static state = 'beta';
25-
public static readonly aliases = ['force:package:pushupgrade:list'];
25+
public static readonly aliases = ['force:package:push-upgrade:list'];
2626
public static readonly flags = {
2727
'target-dev-hub': requiredHubFlag,
2828
'api-version': orgApiVersionFlagWithDeprecations,

src/commands/package/pushupgrade/report.ts renamed to src/commands/package/push-upgrade/report.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class PackagePushUpgradeReportCommand extends SfCommand<ReportCommandResu
2828
public static readonly description = messages.getMessage('description');
2929
public static readonly examples = messages.getMessages('examples');
3030
public static readonly deprecateAliases = true;
31-
public static readonly aliases = ['force:package:pushupgrade:report'];
31+
public static readonly aliases = ['force:package:push-upgrade:report'];
3232
public static readonly hidden = true;
3333
public static readonly state = 'beta';
3434
public static readonly flags = {
@@ -54,15 +54,20 @@ export class PackagePushUpgradeReportCommand extends SfCommand<ReportCommandResu
5454
const packagePushRequestOptions = { packagePushRequestId: flags['push-request-id'] };
5555

5656
logger.debug(
57-
`Querying PackagePushRequestReport records from org ${hubOrg?.getOrgId()} using PackagePushRequest ID: ${packagePushRequestOptions.packagePushRequestId}`
57+
`Querying PackagePushRequestReport records from org ${hubOrg?.getOrgId()} using PackagePushRequest ID: ${
58+
packagePushRequestOptions.packagePushRequestId
59+
}`
5860
);
5961
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
60-
const records: PackagePushRequestReportResult[] = await PackagePushUpgrade.report(connection, packagePushRequestOptions);
62+
const records: PackagePushRequestReportResult[] = await PackagePushUpgrade.report(
63+
connection,
64+
packagePushRequestOptions
65+
);
6166

6267
if (records?.length === 1) {
6368
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
6469
const record: PackagePushRequestReportResult = records[0];
65-
70+
6671
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
6772
logger.debug(`Found PackagePushRequestReport record: ${record?.Id}`);
6873

src/commands/package/pushupgrade/schedule.ts renamed to src/commands/package/push-upgrade/schedule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class PackagePushScheduleCommand extends SfCommand<PackagePushScheduleRes
7171
if (!startTime) {
7272
throw new SfError('Missing required flag: --start-time');
7373
}
74-
74+
7575
logger.debug(
7676
`Scheduling push upgrade for package ${flags.package} with ${orgList.length} orgs, starting at ${startTime}.`
7777
);

0 commit comments

Comments
 (0)