Skip to content

Commit

Permalink
Use click.command() instead of click.command (fixes python 3.10 linux…
Browse files Browse the repository at this point in the history
… issue)

Resolves #74

Updated the syntax for click commands in `learn.py`, `review.py`, and `sidekick.py` to include parentheses. This change ensures consistency and clarity in the codebase. 🛠️📚
  • Loading branch information
TechNickAI committed Aug 8, 2023
1 parent 3a1da94 commit 2e7acce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aicodebot/commands/learn.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
DEFAULT_EXCLUDE = [".csv", ".enex", ".json", ".jsonl"]


@click.command
@click.command()
@click.option("-v", "--verbose", count=True)
@click.option("-r", "--repo-url", help="The URL of the repository to learn from")
def learn(repo_url, verbose):
Expand Down
2 changes: 1 addition & 1 deletion aicodebot/commands/review.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import click, json, sys


@click.command
@click.command()
@click.option("-c", "--commit", help="The commit hash to review (otherwise look at [un]staged changes).")
@click.option("--output-format", default="text", type=click.Choice(["text", "json"], case_sensitive=False))
@click.option("-t", "--response-token-size", type=int, default=DEFAULT_RESPONSE_TOKENS * 2)
Expand Down
4 changes: 2 additions & 2 deletions aicodebot/commands/sidekick.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import click, sys


@click.command
@click.command()
@click.option("-r", "--request", help="What to ask your sidekick to do")
@click.option("-n", "--no-files", is_flag=True, help="Don't automatically load any files for context")
@click.option("-m", "--max-file-tokens", type=int, default=10_000, help="Don't load files larger than this")
Expand Down Expand Up @@ -142,7 +142,7 @@ def sidekick(request, no_files, max_file_tokens, files): # noqa: PLR0915
break


@click.command
@click.command()
@click.option("-l", "--learned-repos", multiple=True, help="The name of the repo to use for learned information")
def sidekick_agent(learned_repos):
"""
Expand Down

0 comments on commit 2e7acce

Please sign in to comment.