Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use execFile rather than spawn #544

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Use execFile rather than spawn #544

merged 1 commit into from
Jul 19, 2024

Conversation

charliermarsh
Copy link
Member

Summary

Recommended in #539.

@charliermarsh charliermarsh added the internal An internal refactor or improvement label Jul 19, 2024
@@ -49,32 +49,15 @@ export type IInitializationOptions = {
/**
* Function to execute a command and return the stdout.
*/
function executeCommand(cmd: string, args: string[] = []): Promise<string> {
function executeCommand(file: string, args: string[] = []): Promise<string> {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe rename to executeFile

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea.

@charliermarsh charliermarsh merged commit 564a37a into main Jul 19, 2024
6 checks passed
@charliermarsh charliermarsh deleted the charlie/exec branch July 19, 2024 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants