Skip to content

Commit

Permalink
bump deprecation version
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Feb 12, 2020
1 parent d1de910 commit 30e15de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/python/pants/rules/core/list_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class OutputFormat(Enum):
def register_options(cls, register):
super().register_options(register)
register('--provides', type=bool,
removal_version='1.24.0.dev2',
removal_version='1.28.0.dev2',
removal_hint='Use --output-format=provides instead!',
help='List only targets that provide an artifact, displaying the columns specified by '
'--provides-columns.')
Expand All @@ -37,7 +37,7 @@ def register_options(cls, register):
'address, artifact_id, repo_name, repo_url, push_db_basedir')

register('--documented', type=bool,
removal_version='1.24.0.dev2',
removal_version='1.28.0.dev2',
removal_hint='Use --output-format=documented instead!',
help='Print only targets that are documented with a description.')

Expand Down Expand Up @@ -108,7 +108,7 @@ async def list_targets(console: Console, list_options: ListOptions, addresses: A
elif documented:
output_format = List.OutputFormat.documented

# TODO: a .resolve_for_enum_variant() which allows `yield Get()` within it somehow!
# TODO: a match() method for Enums which allows `await Get()` within it somehow!
if output_format == List.OutputFormat.provides:
# To get provides clauses, we need hydrated targets.
collection = yield Get(HydratedTargets, Specs, specs)
Expand Down

0 comments on commit 30e15de

Please sign in to comment.