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

deprecate base classes BaseCommand and MultiCommand #2591

Merged
merged 3 commits into from
Aug 19, 2023

Conversation

davidism
Copy link
Member

Importing BaseCommand or MultiCommand from click or click.core will show a deprecation warning. They subclass Command and Group, and isinstance and issubclass will still work.

CommandCollection still exists, but since it subclasses Group now it also supports commands on the group itself as well as the other sources.

Tests were trivial to update, and nothing failed in the switch. Docs were updated to always use the term "group" instead of "multi command", and some other cleanup was done.

closes #2589
closes #2590

@davidism davidism added this to the 8.2.0 milestone Aug 19, 2023
@davidism davidism merged commit edcd2dc into main Aug 19, 2023
9 checks passed
@davidism davidism deleted the deprecate-base-classes branch August 19, 2023 20:07
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deprecate MultiCommand, merge into Group deprecate BaseCommand, merge into Command
1 participant