Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

Commit b27ef3b

Browse files
author
azlam-abdulsalam
committed
fix(fetch): fix console logs spilling when used with json flag
fixes #1254
1 parent 052e2b3 commit b27ef3b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • packages/sfpowerscripts-cli/src/commands/sfpowerscripts/pool

packages/sfpowerscripts-cli/src/commands/sfpowerscripts/pool/fetch.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { COLOR_HEADER } from '@dxatscale/sfp-logger';
1313
import { COLOR_SUCCESS } from '@dxatscale/sfp-logger';
1414
import { COLOR_TIME } from '@dxatscale/sfp-logger';
1515
import getFormattedTime from '@dxatscale/sfpowerscripts.core/lib/utils/GetFormattedTime';
16+
import SfpowerscriptsCommand from '../../../SfpowerscriptsCommand';
1617

1718
// Initialize Messages with the current plugin directory
1819
Messages.importMessagesDirectory(__dirname);
@@ -21,7 +22,7 @@ Messages.importMessagesDirectory(__dirname);
2122
// or any library that is using the messages framework can also be loaded this way.
2223
const messages = Messages.loadMessages('@dxatscale/sfpowerscripts', 'scratchorg_poolFetch');
2324

24-
export default class Fetch extends SfdxCommand {
25+
export default class Fetch extends SfpowerscriptsCommand {
2526
public static description = messages.getMessage('commandDescription');
2627

2728
protected static requiresDevhubUsername = true;
@@ -81,7 +82,7 @@ export default class Fetch extends SfdxCommand {
8182
}),
8283
};
8384

84-
public async run(): Promise<AnyJson> {
85+
public async execute(): Promise<AnyJson> {
8586
const fetchStartTime: number = Date.now();
8687

8788
if (!fs.existsSync('sfdx-project.json'))

0 commit comments

Comments
 (0)