Skip to content

Add JSON output for use command #380

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

Merged
merged 1 commit into from
Jun 12, 2025

Conversation

roulpriya
Copy link
Contributor

Issue #376

Add Output formatter to switch between text and JSON
Add JSON output to switftly use

@@ -27,6 +27,9 @@ public struct GlobalOptions: ParsableArguments {
@Flag(help: "Enable verbose reporting from swiftly")
var verbose: Bool = false

@Option(name: .long, help: "Output format (text, json)")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Since there's only one command that supports toggling the output format, can this option be moved to the commands that support it? The documentation build is failing because it highlights that since this is a global option, that would show up in the help for all commands, even when they don't use it, and are not going to support it as part of this project.

@roulpriya roulpriya force-pushed the refactor-to-json-output branch from b40c7ce to 150e2af Compare June 12, 2025 04:31
@roulpriya roulpriya force-pushed the refactor-to-json-output branch from 150e2af to f46531b Compare June 12, 2025 16:05
@cmcgee1024 cmcgee1024 merged commit fb74b77 into swiftlang:main Jun 12, 2025
45 of 46 checks passed
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 this pull request may close these issues.

2 participants