Skip to content

Switch to using JSONEncoder.makeWithDefaults() for JSON output of describe command #3087

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

Conversation

abertelrud
Copy link
Contributor

Switch to using JSONEncoder.makeWithDefaults() for JSON output formatting of describe command, now that it exists. No change in semantics, so no change to tests.

Motivation:

This cleans up the code by adopting newly added convenience initializers.

Modifications:

Use JSONEncoder.makeWithDefaults() in the implementation of the describe subcommand rather than the conditional code for the various SDK versions.

Result:

No change in semantics, but cleaner code.

…formatting, now that it exists. No change in semantics, so no change to tests.
@abertelrud
Copy link
Contributor Author

@swift-ci please smoke test

@abertelrud abertelrud self-assigned this Dec 2, 2020
@abertelrud
Copy link
Contributor Author

The test failure is unrelated.

@abertelrud
Copy link
Contributor Author

@swift-ci please smoke test

@abertelrud abertelrud merged commit 05803d6 into swiftlang:main Dec 3, 2020
federicobucchi pushed a commit to federicobucchi/swift-package-manager that referenced this pull request Jan 6, 2021
…formatting, now that it exists. No change in semantics, so no change to tests. (swiftlang#3087)
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