Skip to content
Open
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
16 changes: 8 additions & 8 deletions good_first_issues/main.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
"""Entrypoint of the CLI"""
import argparse

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the argparse implementation. The --language and --keyword arguments should be implemented using @click.option() inside search.py where the actual search command is defined

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

from good_first_issues.commands import (
config,
rate_limit,
search,
search, # THIS IS ALREADY THE COMMAND
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this inline comment

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
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this inline comment as well before we merge



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)