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

Make help-all dump a JSON blob containing all help info. #10336

Merged
merged 13 commits into from Jul 15, 2020

Conversation

benjyw
Copy link
Sponsor Contributor

@benjyw benjyw commented Jul 13, 2020

Previously it dumped it in human-readable form, but that seems intrinsically unreadable.
That much data exists to be grepped over, so might as well make it JSON, and allow it
to be jq'd too.

Note: Removes the --help-all flag, as that might imply that it can act as a modifier, e.g., that
./pants test --help-all would show you "all the test help", whatever that might mean.
We want to gently emphasize that "all means all". Of course you can still do
./pants help-all test, so this is just a small nudge. I'd rather not error in this case.

Also adds support for ./pants version to do the same thing as ./pants --version etc.

[ci skip-rust-tests]

# Rust tests will be skipped. Delete if not intended.
[ci skip-rust-tests]
# Rust tests will be skipped. Delete if not intended.
[ci skip-rust-tests]
# Rust tests will be skipped. Delete if not intended.
[ci skip-rust-tests]
# Rust tests will be skipped. Delete if not intended.
[ci skip-rust-tests]
# Rust tests will be skipped. Delete if not intended.
[ci skip-rust-tests]
# Rust tests will be skipped. Delete if not intended.
[ci skip-rust-tests]
# Rust tests will be skipped. Delete if not intended.
[ci skip-rust-tests]
@benjyw benjyw merged commit 9eb8ab2 into pantsbuild:master Jul 15, 2020
@benjyw benjyw deleted the json_help_dump branch July 15, 2020 01:40
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.

None yet

3 participants