Skip to content

Use execFile rather than spawn#544

Merged
charliermarsh merged 1 commit into
mainfrom
charlie/exec
Jul 19, 2024
Merged

Use execFile rather than spawn#544
charliermarsh merged 1 commit into
mainfrom
charlie/exec

Conversation

@charliermarsh

Copy link
Copy Markdown
Member

Summary

Recommended in #539.

@charliermarsh charliermarsh added the internal An internal refactor or improvement label Jul 19, 2024
Comment thread src/common/server.ts Outdated
* 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
Copy Markdown
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
Copy Markdown
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
@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