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

RFC: Ability to disable terminal output with programatic use #411

Open
roderik opened this issue Oct 8, 2024 · 0 comments
Open

RFC: Ability to disable terminal output with programatic use #411

roderik opened this issue Oct 8, 2024 · 0 comments
Labels
future 🔮 An enhancement or feature proposal that will be addressed after the next release

Comments

@roderik
Copy link

roderik commented Oct 8, 2024

Summary

I'm using generateSchema and generateOutput in a programatic way, wrapped in a custom CLI command to bootstrap a new type of application.

As you see often, I want to wrap my codegen steps into a spinner like ora and handle my own success/failure messaging.

Since the built in terminal output messes up my spinner, I would like to have a way to turn off any output messages.

Proposed Solution

Add an optional silent boolean option to the generate* functions.

Requirements

  • when silent is true, do not output anything to the terminal
@roderik roderik added the future 🔮 An enhancement or feature proposal that will be addressed after the next release label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future 🔮 An enhancement or feature proposal that will be addressed after the next release
Projects
None yet
Development

No branches or pull requests

1 participant