CLI command

probierz gate uninstall

Remove the pre-push gate `gate install` wrote and put back the hook it chained.

Invocation#

Shell
probierz gate uninstall <APP_ID>

Required inputs and options#

  • `<appId>` is required. `--repo` defaults to the current directory and must contain `.git/hooks`.

Output and state effects#

Deletes the managed `pre-push` script and renames `pre-push.before-probierz-gate`, when there is one, back to `pre-push`. Answers `removed`, `restored`, the hook path and the app ID as JSON; a tree without the managed hook is reported with both false and nothing changes.

Exact refusals#

  • A path without `.git/hooks` is refused as `not a git working tree: <repo>`.
  • A `pre-push` that `gate install` did not write is refused as `<hook> is not the hook gate install wrote; it was left as it is`.

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`.