CLI command
probierz gate install
Install the managed Probierz pre-push gate into a repository while chaining one existing unmanaged hook.
Invocation#
probierz gate install <APP_ID>Required inputs and options#
- `<appId>` is required. `--repo` defaults to the current directory and must contain `.git/hooks`.
Output and state effects#
Writes the managed `pre-push` script, which runs `gate prepush`, preserves an existing unmanaged hook as `pre-push.before-probierz-gate`, and returns installation metadata as JSON. A managed hook already there, including one that runs `gate-prepush`, is replaced.
Exact refusals#
- A missing application ID is a usage error; a missing repo value: `--repo needs a path`.
- A path without `.git/hooks` is refused as `not a git working tree: <repo>`.
- The application manifest is loaded before mutation; an invalid app cannot install a hook.
Source snapshot#
Generated from the Rust binaries at https://github.com/wisent-ai/probierz.git revision `f65b755da397f2ec7435eb80ed722aa6017437c1`.
Combined help SHA-256: `4a12655d233812abc29eeebbf3db3065efe3e00288024383f3eef3970d092e94`; binary SHA-256: `d5398832d3ab52c541b1efe979730dea62941ac6197898a20fccfc5d3fca44df`.