Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Minor fixes #286

Merged
merged 8 commits into from
Jan 21, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Changed
* removed --search-redhat on service products-contain-component
* several minor output fixes

## [0.5.1] - 2024-01-19
### Changed
* --filter-rh-naming enabled by default (GRIF-121)
Expand Down
18 changes: 3 additions & 15 deletions griffon/commands/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,14 @@ def get_product_summary(
help="Strict search, exact match of name.",
)
@click.pass_context
@progress_bar()
def retrieve_component_summary(ctx, component_name, strict_name_search, operation_status):
def retrieve_component_summary(ctx, component_name, strict_name_search):
"""Get Component summary."""
if not component_name:
click.echo(ctx.get_help())
exit(0)
cond = {}
if component_name:
cond["component_name"] = component_name

operation_status.stop()
ctx.invoke(get_component_summary, **cond)


Expand Down Expand Up @@ -274,7 +271,7 @@ def retrieve_component_summary(ctx, component_name, strict_name_search, operatio
"search_all",
is_flag=True,
default=False,
help="Search all Components and dependencies.",
help="Flat search for all Components.",
)
@click.option(
"--search-all-roots",
Expand All @@ -283,13 +280,6 @@ def retrieve_component_summary(ctx, component_name, strict_name_search, operatio
default=False,
help="Search all ROOT Components and dependencies.",
)
@click.option(
"--search-redhat",
"search_redhat",
is_flag=True,
default=False,
help="Search all Red Hat root Components and dependencies.",
)
@click.option(
"--search-community",
"search_community",
Expand All @@ -302,7 +292,7 @@ def retrieve_component_summary(ctx, component_name, strict_name_search, operatio
"search_all_upstreams",
is_flag=True,
default=False,
help="Search for Components by upstream.",
help="Flat search for all Components by upstream.",
)
@click.option(
"--no-community",
Expand Down Expand Up @@ -396,7 +386,6 @@ def get_product_contain_component(
filter_rh_naming,
search_all,
search_all_roots,
search_redhat,
search_community,
search_all_upstreams,
no_community,
Expand All @@ -423,7 +412,6 @@ def get_product_contain_component(
and not search_related_url
and not search_community
and not search_all_upstreams
and not search_redhat
and not search_provides
and not search_upstreams
):
Expand Down
Loading