MCPcopy Index your code
hub / github.com/github/spec-kit / bundle_build

Function bundle_build

src/specify_cli/commands/bundle/__init__.py:513–534  ·  view source on GitHub ↗

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"),
)

Source from the content-addressed store, hash-verified

511
512@bundle_app.command("build")
513def 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")

Callers

nothing calls this directly

Calls 4

build_bundleFunction · 0.85
_failFunction · 0.85
printMethod · 0.80
resolveMethod · 0.45

Tested by

no test coverage detected