Update cli to remove uneeded options
This commit is contained in:
parent
9173399ce8
commit
a6cdbf1761
5 changed files with 517 additions and 61 deletions
|
@ -26,7 +26,7 @@ def create_argument_parser() -> argparse.ArgumentParser:
|
|||
epilog="""
|
||||
Examples:
|
||||
reviewllama . --model gemma3:27b --server localhost:11434
|
||||
reviewllama src/ tests/ --model llama3.2:7b --timeout 60
|
||||
reviewllama src/ tests/ --model llama3.2:7b
|
||||
""",
|
||||
)
|
||||
|
||||
|
@ -50,21 +50,6 @@ Examples:
|
|||
help="Ollama server URL (default: %(default)s)",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--timeout",
|
||||
type=int,
|
||||
default=30,
|
||||
help="Request timeout in seconds (default: %(default)s)",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--max-retries",
|
||||
dest="max_retries",
|
||||
type=int,
|
||||
default=3,
|
||||
help="Maximum number of retry attempts (default: %(default)s)",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--base-branch",
|
||||
dest="base_branch",
|
||||
|
@ -89,8 +74,8 @@ def transform_namespace_to_config(namespace: argparse.Namespace) -> ReviewConfig
|
|||
paths=paths,
|
||||
model=namespace.model,
|
||||
server_url=normalize_server_url(namespace.server_url),
|
||||
timeout=namespace.timeout,
|
||||
max_retries=namespace.max_retries,
|
||||
# TODO: Update this system prompt. Either allow the user to provide it or engineer our own for this.
|
||||
"You are a helpful AI assistant",
|
||||
base_branch=namespace.base_branch,
|
||||
)
|
||||
|
||||
|
@ -113,6 +98,8 @@ def cli() -> None:
|
|||
analysis = analyze_git_repository(path, config.base_branch)
|
||||
log_git_analysis_start(path, config.base_branch)
|
||||
log_git_analysis_result(analysis)
|
||||
print(analysis.diffs)
|
||||
|
||||
except SystemExit:
|
||||
# argparse calls sys.exit on error, let it propagate
|
||||
raise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue