CLI command
probierz project adopt
Adopt existing Probierz application manifests and specs into the current project without executing them.
Invocation#
probierz project adopt --source <repository> [--replace]Required inputs and options#
- `--source` is required and names an existing Git repository.
- Accepted definitions are all regular non-symlink files beneath `apps/` plus the established `test/specs`, `tests`, or `specs` directories for supported Probierz packages. The source's local `apps/.adoptions.json` is reported and excluded.
- `--replace` explicitly replaces reviewed unmanaged files or same-source files that still match their retained content and mode; preserving existing definitions is the default.
Output and state effects#
Copies accepted definition bytes and modes transactionally, records source path and SHA-256 identity in `apps/.adoptions.json`, and reports imported, unchanged, removed, conflicting, and rejected counts. It never installs tools or runs a spec.
Exact refusals#
- The complete source is validated before mutation: malformed manifests, app-ID mismatches, missing referenced specs, symlinks, and special files are rejected.
- A destination owned by another adopted source always conflicts.
- Locally changed adopted content or file modes conflict even with `--replace`, including definitions removed upstream; Probierz never discards that local change.
Source snapshot#
Generated from the Rust binaries at https://github.com/wisent-ai/probierz.git revision `f40fa7ed94a028b56b5a59342eaf55982ba5cf7d`.
Combined help SHA-256: `04bab0ac1e9691119efcb70627b534a73431f51bb44ed8ba81d93cc10afd6569`; binary SHA-256: `08424ee2465261eafaa112d13ef05a20ce1fe1b6479e896341e22fbc55e61d3e`.