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

feat(clap): Publicly expose Command::build #3642

Merged
merged 1 commit into from Apr 19, 2022
Merged

Conversation

epage
Copy link
Member

@epage epage commented Apr 19, 2022

Command::_build_all started as an internal function for
clap_complete as a stopgap until #2911. Overtime, we've been finding
more cases where this function needs to be called, so now we're going to
fully embrace it until #2911 so people aren't scrared off by the hidden
implementation from using it.

This was inspired by #3602

Comptibility: Though this adds a deprecation which we general reserve
for minor or major versions, this is enough of a corner case that I'm
fine doing this in a patch release.

`Command::_build_all` started as an internal function for
`clap_complete` as a stopgap until clap-rs#2911.  Overtime, we've been finding
more cases where this function needs to be called, so now we're going to
fully embrace it until clap-rs#2911 so people aren't scrared off by the hidden
implementation from using it.

This was inspired by clap-rs#3602

Comptibility: Though this adds a deprecation which we general reserve
for minor or major versions, this is enough of a corner case that I'm
fine doing this in a patch release.
@epage epage merged commit c818ef4 into clap-rs:master Apr 19, 2022
@epage epage deleted the build branch April 19, 2022 15:27
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

1 participant