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, preserves an existing unmanaged hook as `pre-push.before-probierz-gate`, and returns installation metadata as JSON.
Exact refusals#
- Missing application ID: `gate-install needs an app ID`; 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 `c589d6917201c31f57e6a7f24522c0d50ae5bd0f`.
Combined help SHA-256: `43f0d9cd136ac2c46ec3eedb2824bd5d6168f235dea4caaa50610c005f40c84a`; binary SHA-256: `7e42c843082863ed265817de90a110a2f27546426a54d372e10009fd665a4d8e`.