35 lines
847 B
Python
Executable File
35 lines
847 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""Compatibility wrapper for `bootstrap cli apply`."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import argparse
|
|
from pathlib import Path
|
|
|
|
from cli import cmd_apply
|
|
|
|
|
|
def main() -> int:
|
|
parser = argparse.ArgumentParser(description=__doc__)
|
|
parser.add_argument(
|
|
"target",
|
|
type=Path,
|
|
help="Project root to initialize or update non-destructively.",
|
|
)
|
|
parser.add_argument(
|
|
"--bundle",
|
|
type=Path,
|
|
help="Existing bootstrap bundle to apply. Defaults to a generated temp bundle.",
|
|
)
|
|
parser.add_argument(
|
|
"--on-conflict",
|
|
choices=["keep", "replace", "write-new"],
|
|
help="Explicit conflict behavior for unattended runs.",
|
|
)
|
|
args = parser.parse_args()
|
|
return cmd_apply(args)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|