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

Add support for a --quiet flag for the spec command #548

Closed
tsokalski opened this issue Mar 2, 2024 · 2 comments · Fixed by #550
Closed

Add support for a --quiet flag for the spec command #548

tsokalski opened this issue Mar 2, 2024 · 2 comments · Fixed by #550
Labels

Comments

@tsokalski
Copy link
Contributor

The flask spec command currently always prints output to stdout. In cases where the output is being directed to a file, a --quiet command option (or similar) would be useful to pipe the results to the output file without printing them as well.

@Muzych
Copy link

Muzych commented Mar 3, 2024

About Flask Spec
the document said that you could add --output after flask spec command.
Such as flask spec --output openapi.json

@tsokalski
Copy link
Contributor Author

About Flask Spec the document said that you could add --output after flask spec command. Such as flask spec --output openapi.json

Yeah, that's useful, but I'm looking to reduce output noise - my current spec is over 20k lines long, and printing the whole thing in a build pipeline while writing to a file is a bit distracting 😅.

I've opened #550 to achieve what I'm seeking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants