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

Fix fd-specific options #974

Merged
merged 1 commit into from
Apr 16, 2024
Merged

Fix fd-specific options #974

merged 1 commit into from
Apr 16, 2024

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented Apr 15, 2024

Fixes #930.

Users can now set different values for stdout and stderr for a few options like verbose.

await execa(..., {verbose: {stdout: 'full', stderr: 'none'}})

When users pass things like stdout + all, the priority order is currently undefined.

await execa(..., {verbose: {stdout: 'full', all: 'none'}})

This PR defines a clearer priority order: stdout/stderr > fd* > all.

@sindresorhus sindresorhus merged commit 4940511 into main Apr 16, 2024
12 checks passed
@sindresorhus sindresorhus deleted the fd-specific-priority branch April 16, 2024 01:06
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.

Stdout/stderr-specific options
2 participants