From b887e96cc59f172632e0192c6200bda5932887e4 Mon Sep 17 00:00:00 2001 From: AthanasEdigerMartin Date: Mon, 16 Feb 2026 13:22:40 -0700 Subject: [PATCH] feat: add --language and --keyword filtering to search command --- good_first_issues/main.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/good_first_issues/main.py b/good_first_issues/main.py index 9bc7f08..7f86e70 100644 --- a/good_first_issues/main.py +++ b/good_first_issues/main.py @@ -1,4 +1,9 @@ """Entrypoint of the CLI""" +import argparse + +parser = argparse.ArgumentParser() +parser.add_argument("--language", help="Filter by programming language") +parser.add_argument("--keyword", help="Filter by keyword in title or description") import click from rich.console import Console @@ -6,27 +11,22 @@ from good_first_issues.commands import ( config, rate_limit, - search, + search, # THIS IS ALREADY THE COMMAND show_version as version, ) console = Console(color_system="auto") - @click.group() def cli(): """ Get good first issues to start hacking. - (Requires GitHub Authentication Token) - $ gfi search - """ pass - cli.add_command(config) -cli.add_command(search) +cli.add_command(search) # <-- command already implemented in search.py cli.add_command(rate_limit) -cli.add_command(version) +cli.add_command(version) \ No newline at end of file