Loading src/climax/__main__.py +12 −6 Changes for src/climax/__main__.py: 12 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -726,12 +726,18 @@ def cache_clear(): @app.command(help=_("Affiche la configuration de MaX")) def config(): def info(): check_cwd_is_max() config = max_config() print(f"MaX version: {config.max_version}\n") print("Project configuration:\n") print(max_config()) console = Console() table = Table(_("Nom"), _("Valeur"), show_lines=True) table.add_row(_("Version de MaX"), config.max_version) table.add_row(_("Titre"), config.title) table.add_row(_("Environnement"), config.env) table.add_row(_("Langues"), ", ".join(config.languages)) table.add_row(_("Bundles installés"), ", ".join(config.bundles.keys())) table.add_row(_("Bundle de vocabulaire XML"), config.vocabulary_bundle) console.print(table) @app.command(help=_("Fait une copie HTML statique du projet dans le dossier")) Loading Loading @@ -872,12 +878,12 @@ def bundles_add(bundle_name: str): @app.command(help=_("Ajoute un fichier ou un dossier XML à l'instance de Max en cours")) def feed(feed_path: Path): check_cwd_is_max() java_bin_path = ensure_java() feed_path = Path(feed_path).resolve() if not feed_path.is_file() and not feed_path.is_dir(): print(_("[red]{} n'existe pas[/red]").format(feed_path)) raise typer.Exit(code=1) check_cwd_is_max() java_bin_path = ensure_java() process_args = [ str(java_bin_path), "-cp", Loading Loading
src/climax/__main__.py +12 −6 Changes for src/climax/__main__.py: 12 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -726,12 +726,18 @@ def cache_clear(): @app.command(help=_("Affiche la configuration de MaX")) def config(): def info(): check_cwd_is_max() config = max_config() print(f"MaX version: {config.max_version}\n") print("Project configuration:\n") print(max_config()) console = Console() table = Table(_("Nom"), _("Valeur"), show_lines=True) table.add_row(_("Version de MaX"), config.max_version) table.add_row(_("Titre"), config.title) table.add_row(_("Environnement"), config.env) table.add_row(_("Langues"), ", ".join(config.languages)) table.add_row(_("Bundles installés"), ", ".join(config.bundles.keys())) table.add_row(_("Bundle de vocabulaire XML"), config.vocabulary_bundle) console.print(table) @app.command(help=_("Fait une copie HTML statique du projet dans le dossier")) Loading Loading @@ -872,12 +878,12 @@ def bundles_add(bundle_name: str): @app.command(help=_("Ajoute un fichier ou un dossier XML à l'instance de Max en cours")) def feed(feed_path: Path): check_cwd_is_max() java_bin_path = ensure_java() feed_path = Path(feed_path).resolve() if not feed_path.is_file() and not feed_path.is_dir(): print(_("[red]{} n'existe pas[/red]").format(feed_path)) raise typer.Exit(code=1) check_cwd_is_max() java_bin_path = ensure_java() process_args = [ str(java_bin_path), "-cp", Loading