diff --git a/toolkit/cli/app.py b/toolkit/cli/app.py index caa247b..2ecc639 100644 --- a/toolkit/cli/app.py +++ b/toolkit/cli/app.py @@ -4,7 +4,6 @@ from toolkit.cli.cmd_run import register as register_run from toolkit.cli.cmd_inspect import register as register_inspect -from toolkit.cli.cmd_batch import register as register_batch from toolkit.cli.cmd_contract import register as register_contract from toolkit.cli.cmd_scout import register as register_scout from toolkit.cli.cmd_registry import register as register_registry @@ -26,7 +25,6 @@ def _main_options( # registra comandi register_run(app) register_inspect(app) -register_batch(app) register_contract(app) register_scout(app) register_registry(app) diff --git a/toolkit/cli/cmd_batch.py b/toolkit/cli/cmd_batch.py deleted file mode 100644 index 8501936..0000000 --- a/toolkit/cli/cmd_batch.py +++ /dev/null @@ -1,61 +0,0 @@ -"""Batch execution — deprecato, usa ``toolkit run --batch ``.""" - -from __future__ import annotations - -import warnings - -import typer - -from toolkit.cli.cmd_run import _run_batch - - -def batch( - configs: str = typer.Option( - ..., "--configs", help="Path to a text file with one dataset.yml path per line" - ), - step: str = typer.Option("all", "--step", help="probe | raw | clean | mart | all"), - smoke: bool = typer.Option( - False, "--smoke", help="Alias per --sample-rows 1000 --sample-bytes 1048576" - ), - sample_rows: int | None = typer.Option( - None, "--sample-rows", help="Leggi solo N righe in CLEAN (LIMIT N sul output SQL)" - ), - sample_bytes: int | None = typer.Option( - None, - "--sample-bytes", - help="Scarica solo N bytes in RAW (HTTP Range header + troncamento locale)", - ), - dry_run: bool = typer.Option(False, "--dry-run", help="Print execution plan without executing"), - json_output: bool = typer.Option( - False, "--json", help="Output in formato JSON (machine-readable)" - ), -): - """ - ⚠️ DEPRECATO: usa ``toolkit run --batch ``. - - Esegue piu' config in sequenza e stampa un report aggregato finale. - """ - warnings.warn( - "'toolkit batch' è deprecato, usa 'toolkit run --batch '", - DeprecationWarning, - stacklevel=2, - ) - typer.echo( - "⚠️ 'toolkit batch' è deprecato, usa 'toolkit run --batch '", - err=True, - ) - _run_batch( - batch_file=configs, - step=step, - years=None, - smoke=smoke, - sample_rows=sample_rows, - sample_bytes=sample_bytes, - root=None, - json_output=json_output, - dry_run=dry_run, - ) - - -def register(app: typer.Typer) -> None: - app.command("batch", hidden=True)(batch) diff --git a/toolkit/cli/sql_dry_run.py b/toolkit/cli/sql_dry_run.py deleted file mode 100644 index 7f81d98..0000000 --- a/toolkit/cli/sql_dry_run.py +++ /dev/null @@ -1,13 +0,0 @@ -"""SQL dry-run validation — DEPRECATO, importa da toolkit.core.sql_validation.""" - -from __future__ import annotations - -import warnings - -from toolkit.core.sql_validation import * # noqa: F403 - -warnings.warn( - "toolkit.cli.sql_dry_run è deprecato, importa da toolkit.core.sql_validation", - DeprecationWarning, - stacklevel=2, -)