CLI reference / quality / hooks

stado quality hooks

Invocation

stado quality hooks <COMMAND>

Purpose

The pre-push gate of a product's checkouts on this machine: the Git hook that hands every push to `stado quality check --pre-push`

Required inputs and options

This command has no command-specific inputs or options.

Output and state effect

This command group selects one of the subcommands listed below; use its exact child invocation to perform an operation.

Refusals

  • Before dispatch, Stado refuses a missing required token shown in the invocation, an unknown option, or a value outside a listed value set; argument-usage failures exit with code 2.

Subcommands

  • install — Write Stado's pre-push hook into each checkout whose hooks Git runs from its own hooks directory, or repair one another Stado wrote; a hook that is there already and is not Stado's is kept as pre-push.chained and runs after the gate. Running it again changes nothing. A checkout whose core.hooksPath sends Git elsewhere is left and named. Exits non-zero, after every checkout was taken, when one could not be read or written
  • status — Read where each checkout's pre-push gate stands: installed, outdated, absent, foreign (a hook that is not Stado's), governed (by core.hooksPath), no checkout on this machine, or unreadable (Git or the hooks directory could not be read, which exits non-zero)
  • remove — Take Stado's pre-push hook out of each checkout and put back the hook it chained; a hook that is not Stado's is left