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

Allow JSON configuration text to be passed directly on the command line. #634

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

allevato
Copy link
Member

If the --configuration flag is provided and it's not a valid file path, then swift-format will now attempt to parse the value directly as the JSON configuration. For example, --configuration '{"lineLength": 20}'. This is primarily useful for quick testing.

If the `--configuration` flag is provided and it's not a valid file path,
then swift-format will now attempt to parse the value directly as the
JSON configuration. For example, `--configuration '{"lineLength": 20}`.
This is primarily useful for quick testing.
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.

1 participant