feat: vcs, color, and message format native completion#15322
Merged
weihanglo merged 1 commit intorust-lang:masterfrom Mar 20, 2025
Merged
Conversation
Collaborator
epage
reviewed
Mar 18, 2025
epage
reviewed
Mar 18, 2025
epage
reviewed
Mar 18, 2025
epage
reviewed
Mar 18, 2025
epage
reviewed
Mar 18, 2025
d929d47 to
1407700
Compare
weihanglo
reviewed
Mar 18, 2025
5d30926 to
8c74e6e
Compare
Contributor
|
Please keep commits atomic which includes test passing in each commit |
8c74e6e to
16c4741
Compare
16c4741 to
3ea0e6b
Compare
weihanglo
approved these changes
Mar 20, 2025
Member
weihanglo
left a comment
There was a problem hiding this comment.
It is unfortunate that --message-format in cargo build has too many possible values and couldn't fit in one line.
Anyway this PR on its own is good to merge. Thank you!
Member
|
We could do a check-up for other places that might leverage possible values and delimiters API from clap |
30 tasks
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Mar 22, 2025
Update cargo 14 commits in 6cf8267012570f63d6b86e85a2ae5627de52df9e..307cbfda3119f06600e43cd38283f4a746fe1f8b 2025-03-14 15:25:36 +0000 to 2025-03-20 20:00:39 +0000 - feat: Add custom completer for cargo <TAB> to complete aliases defined in config.toml (rust-lang/cargo#15319) - fix(build-dir): Renamed workspace-manifest-path-hash to workspace-path-hash (rust-lang/cargo#15334) - feat: vcs, color, and message format native completion (rust-lang/cargo#15322) - Fix `[env]` `relative` description in reference (rust-lang/cargo#15332) - chore: fix some typos (rust-lang/cargo#15329) - Cleanup for rustc-link-arg-cdylib (rust-lang/cargo#15326) - fix(toml): Report '<target>.edition' deprecation to users (rust-lang/cargo#15321) - test(build-std): address overly-matched snapshot (rust-lang/cargo#15325) - Added `build.build_dir` templating support (rust-lang/cargo#15236) - docs: make it clearer that `rust_version` is enforced during compile (rust-lang/cargo#15303) - feat: Add custom completer for cargo +<TAB> to complete toolchain name (rust-lang/cargo#15301) - chore: fix some typos (rust-lang/cargo#15316) - fix: deduplicate crate types in cargo rustc command (rust-lang/cargo#15314) - docs: mention wrong URLs as a cause of git authentication errors (rust-lang/cargo#15304) r? ghost
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR try to resolve?
Related to #14520
This PR introduces auto-completion for following options:
--coloroption with values: auto, always, never--vcsoption with values: git, hg, pijul, fossil, none--message-formatoption with values: human, short, json, json-diagnostic-short, json-diagnostic-renderedTake
--coloras an example, when a user typescargo build --color <TAB>the system will automatically suggest auto, always, neverHow should we test and review this PR?
To verify this feature, follow these steps:
cargo build --color <TAB>orcargo new my_project --vcs <TAB>orcargo check --message-format <TAB>2025-03-18.4.29.14.mov