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

DM-32499: deprecate butler prune-collections #634

Merged
merged 2 commits into from
Jan 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/changes/DM-32499.api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The "butler prune-collections" command line command is now deprecated.
Please consider using remove-collections or remove-runs instead. Will be removed after v24.
6 changes: 6 additions & 0 deletions python/lsst/daf/butler/cli/cmd/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
__all__ = ()

import click
from deprecated.sphinx import deprecated

from ... import script
from ..opt import (
Expand Down Expand Up @@ -222,6 +223,11 @@ def config_validate(*args, **kwargs):
)
@confirm_option()
@options_file_option()
@deprecated(
reason="Please consider using remove-collections or remove-runs instead. Will be removed after v24.",
version="v24.0",
category=FutureWarning,
)
def prune_collection(**kwargs):
"""Remove a collection and possibly prune datasets within it."""
result = script.pruneCollection(**kwargs)
Expand Down