-
Notifications
You must be signed in to change notification settings - Fork 15
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
Suggestion: Prettier like parameters to allow for easy script usage #16
Comments
Hi @wedi Thanks for your input. Do I understand correct that you are requesting the option "--write" which executes the formatting based on a glob matching patterns? Like prettier does? |
Exactly. That would make things much tidier.
|
@wedi It will be a bit more work, since I would have to scan folders for patterns. I understand the local usage use case for ---write |
Maybe you could use a library for that, e.g. https://www.npmjs.com/package/glob |
This would be extremely helpful. |
hi @wedi & @bodograumann Although it is not exactly the feature requested, in release v1.23.0, we introduced the support for |
Hi,
first of all, thanks for your tool that helps keeping API definitions and commits clean. ❤️
prettier
has a CLI that makes it really easy to use it in scripts, e.g. inCI
:--write
replaces the input files--check
makes it fail if something changedThat might be a nice addition to
openapi-format
, too, although you can work arround the first two withfind . -name '*.yaml' -exec yarn run openapi-format {} -o {} \;
.The text was updated successfully, but these errors were encountered: