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

feat(core): allow interactivity for run-commands #8269 #13283

Closed

Conversation

Coly010
Copy link
Contributor

@Coly010 Coly010 commented Nov 21, 2022

Current Behavior

running any command via the nx:run-commands executor that expects user input is impossible. The output is hidden, and the terminal is not interactive to allow the user to input anything to the stdin stream.

Expected Behavior

Running commands via the nx:run-commands executor should allow for the output of the underlying command to be streamed to the terminal, as it is most likely running a third-party tool, and it should also allow interactivity from the user to support maximum compatibility with the commands that can be run from it.

Related Issue(s)

Fixes #8269

@Coly010 Coly010 requested a review from FrozenPandaz November 21, 2022 11:22
@Coly010 Coly010 self-assigned this Nov 21, 2022
@vercel
Copy link

vercel bot commented Nov 21, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nx-dev ❌ Failed (Inspect) Nov 21, 2022 at 11:24AM (UTC)

@FrozenPandaz
Copy link
Collaborator

@AgentEnder Do you see any issues with this?

@AgentEnder
Copy link
Member

Talked w/ Colum on this one this morning. This concerns me, as the whole reason for the direct-nodejs vs pipe output split is that execSync w/ inherit or similar should not work with direct-nodejs. I'll investigate this sometime this week.

@AgentEnder
Copy link
Member

I think this is a case of "it happens to work for certain commands, but others fail" We should keep pipe as the output capture method for run-commands. If someone needs direct-nodejs, a custom executor isn't a huge barrier.

@AgentEnder AgentEnder closed this Feb 15, 2023
@github-actions
Copy link

github-actions bot commented Mar 3, 2023

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow interactive commands through @nrwl/workspace:run-commands
3 participants