Skip to content

deprecate base classes BaseCommand and MultiCommand#2591

Merged
davidism merged 3 commits into
mainfrom
deprecate-base-classes
Aug 19, 2023
Merged

deprecate base classes BaseCommand and MultiCommand#2591
davidism merged 3 commits into
mainfrom
deprecate-base-classes

Conversation

@davidism
Copy link
Copy Markdown
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 force-pushed the deprecate-base-classes branch from cdadbe7 to aa1966f Compare August 19, 2023 19:59
@davidism davidism force-pushed the deprecate-base-classes branch from aa1966f to 238ee07 Compare August 19, 2023 20:01
@davidism davidism merged commit edcd2dc into main Aug 19, 2023
@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