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 ] Use TTY mode on Process Facade #72

Merged
merged 11 commits into from
May 24, 2024
Merged

Conversation

ProjektGopher
Copy link
Owner

@ProjektGopher ProjektGopher commented May 24, 2024

Resolves #28

Using TTY Mode on the Process facade allows us to pass input and output through to the invoked process, preserving colours, and allowing for user interactions.

This also drastically simplifies the architecture of this command by removing the need for a shell script that's sole responsibility is running a list of terminal commands returned by an artisan command who's job it is to build that list.

Some environments don't support TTY mode, like the git tab in VS code. In this case, there's a fallback with a 5 minutes timeout.

The get-run-cmd Command has been refactored to update the users hooks automatically.

@ProjektGopher ProjektGopher merged commit d51a905 into main May 24, 2024
12 checks passed
@ProjektGopher ProjektGopher deleted the feat/tty_process branch May 24, 2024 17:32
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.

[ Task ] Preserve console colors in bin/run-hook when running SCRIPT
1 participant