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(exec): Add --silent to silence all RW output #11278

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented Aug 15, 2024

Run with --silent (or -s) to not have the framework itself print anything to your console. Only console logs you have yourself in the script, or any files the script includes, will come through.

If you're using Prisma you might want to tweak Prisma's logging (in api/lib/db.ts) and turn off "info" logging, depending on your goals.

image

Using --silent/-s is perfect for when you want to pipe the output to some other command or just to a file


Unfortunately it's not possible to unit test this code with vitest because of our reliance on babel and require

@Tobbe Tobbe force-pushed the tobbe-exec-silent branch from 1fe0cac to 05f449c Compare August 15, 2024 17:46
@Tobbe Tobbe added the release:feature This PR introduces a new feature label Aug 15, 2024
@Tobbe Tobbe added this to the next-release milestone Aug 15, 2024
@Tobbe Tobbe merged commit c75493e into redwoodjs:main Aug 15, 2024
46 checks passed
@Tobbe Tobbe deleted the tobbe-exec-silent branch August 15, 2024 18:21
@Josh-Walker-GM Josh-Walker-GM modified the milestones: next-release, v8.0.0 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:feature This PR introduces a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants