Produce a single versioned distributable artifact (.zip).
(
path: Path = typer.Option(
None, "--path", help="Bundle directory (default: cwd)"
),
output: Path = typer.Option(None, "--output", help="Output directory for the artifact"),
)
| 511 | |
| 512 | @bundle_app.command("build") |
| 513 | def bundle_build( |
| 514 | path: Path = typer.Option( |
| 515 | None, "--path", help="Bundle directory (default: cwd)" |
| 516 | ), |
| 517 | output: Path = typer.Option(None, "--output", help="Output directory for the artifact"), |
| 518 | ) -> None: |
| 519 | """Produce a single versioned distributable artifact (.zip).""" |
| 520 | try: |
| 521 | bundle_dir = (path or Path.cwd()).resolve() |
| 522 | if bundle_dir.is_file(): |
| 523 | bundle_dir = bundle_dir.parent |
| 524 | from ...bundler.services.packager import build_bundle |
| 525 | |
| 526 | result = build_bundle(bundle_dir, output_dir=output) |
| 527 | except BundlerError as exc: |
| 528 | _fail(str(exc)) |
| 529 | return |
| 530 | |
| 531 | console.print( |
| 532 | f"[green]✓[/green] Built {result.artifact_path.name} " |
| 533 | f"({result.file_count} files) → {result.artifact_path}" |
| 534 | ) |
| 535 | |
| 536 | |
| 537 | @bundle_app.command("init") |
nothing calls this directly
no test coverage detected