Skip to content

Conversation

@OrShamirCM
Copy link

No description provided.

}

initializeCommands(formatRequired: boolean): string[] {
async initializeCommands(formatRequired: boolean): Promise<string[]> {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when is get to this method? in each command and each event or only one time?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

}
let executablePath: string;
if (cxScanConfig.pathToExecutable) {
this.config.pathToExecutable = cxScanConfig.pathToExecutable;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can create a factory for the wrapper then have async method for init the wrapper

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or you can create just a method in the wrapper create wrapper that will call the constructor and init the cli

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi, there are more ways to solve it, you can try to get the right solution

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@OrShamirCM OrShamirCM merged commit d03dc18 into main Sep 24, 2024
@cx-ben-alvo cx-ben-alvo deleted the benalvo/create-runtime-wrapper branch December 31, 2024 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants