Skip to content

Commit

Permalink
fix: remove verbose flag schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
btrn11 committed Jan 14, 2025
1 parent 29fb2ff commit 08b758d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions command-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,16 @@
{
"alias": ["force:package:pushupgrade:schedule"],
"command": "package:pushupgrade:schedule",
"flagAliases": ["scheduledstarttime", "target-hub-org", "targetdevhubusername"],
"flagAliases": ["apiversion", "scheduledstarttime", "target-hub-org", "targetdevhubusername"],
"flagChars": ["f", "i", "t", "v"],
"flags": [
"api-version",
"flags-dir",
"json",
"org-list",
"package-version-id",
"scheduled-start-time",
"target-dev-hub",
"verbose"
"target-dev-hub"
],
"plugin": "@salesforce/plugin-packaging"
},
Expand Down
8 changes: 3 additions & 5 deletions src/commands/package/pushupgrade/schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
import fs from 'node:fs/promises';
import * as csv from 'csv-parse/sync';
import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
import { Flags, SfCommand, orgApiVersionFlagWithDeprecations } from '@salesforce/sf-plugins-core';
import { Messages, SfError } from '@salesforce/core';
import { PackagePushScheduleResult, PackagePushUpgrade } from '@salesforce/packaging';
import { requiredHubFlag } from '../../../utils/hubFlag.js';
Expand All @@ -23,6 +23,7 @@ export class PackagePushScheduleCommand extends SfCommand<PackagePushScheduleRes
public static readonly aliases = ['force:package:pushupgrade:schedule'];
public static readonly flags = {
'target-dev-hub': requiredHubFlag,
'api-version': orgApiVersionFlagWithDeprecations,
'package-version-id': Flags.string({
char: 'i',
summary: messages.getMessage('flags.package-version-id.summary'),
Expand All @@ -39,9 +40,6 @@ export class PackagePushScheduleCommand extends SfCommand<PackagePushScheduleRes
summary: messages.getMessage('flags.org-list.summary'),
required: true,
}),
verbose: Flags.boolean({
summary: messages.getMessage('flags.verbose.summary'),
}),
};

public async run(): Promise<PackagePushScheduleResult> {
Expand All @@ -56,7 +54,7 @@ export class PackagePushScheduleCommand extends SfCommand<PackagePushScheduleRes
const orgList = await readOrgListFile(flags['org-list']);

// Connect to the Dev Hub
const conn = flags['target-dev-hub'].getConnection('61.0');
const conn = flags['target-dev-hub'].getConnection(flags['api-version']);

// Schedule the push upgrade
const result = await PackagePushUpgrade.schedule(
Expand Down

0 comments on commit 08b758d

Please sign in to comment.