fix: auto-load YAML config on CLI startup
CLI now reads ~/.config/redmine-reporter/config.yml automatically. Previously Config.load_yaml() existed but was never called.
This commit is contained in:
@@ -211,6 +211,10 @@ def main(argv: Optional[List[str]] = None) -> int:
|
||||
Config.set_redmine_url(args.url)
|
||||
Config.set_redmine_api_key(args.api_key)
|
||||
|
||||
# Автозагрузка YAML-конфига
|
||||
yaml_path = args.config_path
|
||||
Config.load_yaml(yaml_path)
|
||||
|
||||
# Настройка уровня логирования
|
||||
if args.debug:
|
||||
logging.basicConfig(level=logging.DEBUG, format="%(levelname)s: %(message)s")
|
||||
|
||||
Reference in New Issue
Block a user