Поддержка плагинов
This commit is contained in:
Mikan
2025-12-08 17:27:26 +03:00
parent 8da965234c
commit 5b08f6792a
4 changed files with 52 additions and 3 deletions

View File

@@ -15,9 +15,10 @@ def convert(
style_config: Path = typer.Option("resources/style_config.yaml", "--style", "-s", help="Файл стилей"),
template: Optional[Path] = typer.Option(None, "--template", "-t", help="Шаблон .dotx"),
theme: Optional[str] = typer.Option(None, "--theme", "-T", help="Название темы (gost, academic...)"),
plugins_dir: Optional[Path] = typer.Option(None, "--plugins", "-p", help="Папка с плагинами"),
verbose: bool = typer.Option(False, "--verbose", "-v", help="Включить отладочные сообщения"),
):
log_level = logging.DEBUG if verbose else logging.INFO
logging.basicConfig(level=log_level, format='%(levelname)s: %(message)s')
process_document(input_dir, output_dir, style_config, template, theme)
process_document(input_dir, output_dir, style_config, template, theme, plugins_dir)