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

Commit

Permalink
Merge pull request #113 from RedHatProductSecurity/mitigate-search-all
Browse files Browse the repository at this point in the history
GRIF-68 - mitigate Bad Gateway issues
  • Loading branch information
JimFuller-RedHat authored Mar 23, 2023
2 parents f521cfc + 255b6d4 commit 0f51fe1
Show file tree
Hide file tree
Showing 2 changed files with 239 additions and 88 deletions.
11 changes: 9 additions & 2 deletions griffon/commands/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,18 @@ def queries_grp(ctx):
default=False,
help="Strict search, exact match of name.",
)
@click.option(
"--all",
"all",
is_flag=True,
default=False,
help="Return all Products.",
)
@click.pass_context
@progress_bar
def get_product_summary(ctx, product_stream_name, strict_name_search):
def get_product_summary(ctx, product_stream_name, strict_name_search, all):
"""get product stream."""
if not product_stream_name:
if not product_stream_name and not all and not strict_name_search:
click.echo(ctx.get_help())
exit(0)
q = query_service.invoke(core_queries.product_stream_summary, ctx.params)
Expand Down
Loading

0 comments on commit 0f51fe1

Please sign in to comment.