Add missing setup files and add a nice logger
This commit is contained in:
parent
ed38373d1e
commit
645d329321
7 changed files with 132 additions and 6 deletions
|
@ -1,8 +1,10 @@
|
|||
import argparse
|
||||
from typing import List, Optional
|
||||
from pathlib import Path
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from typing import List, Optional
|
||||
|
||||
from .configs import OllamaConfig, ReviewConfig, create_config_from_vars
|
||||
from .logger import log_paths, log_review_start
|
||||
|
||||
|
||||
def normalize_server_url(url: str) -> str:
|
||||
|
@ -93,9 +95,8 @@ def cli() -> None:
|
|||
try:
|
||||
config = parse_arguments()
|
||||
# TODO: Pass config to review engine
|
||||
print(f"Reviewing {len(config.paths)} path(s) with model {config.ollama.model}")
|
||||
for path in config.paths:
|
||||
print(f" - {path}")
|
||||
log_review_start(config)
|
||||
log_paths(config.paths)
|
||||
except SystemExit:
|
||||
# argparse calls sys.exit on error, let it propagate
|
||||
raise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue