onyo fsck

Runs a comprehensive suite of checks to verify the integrity and validity of an onyo repository and its contents:

First, onyo fsck checks if it’s a valid git repository and contains an .onyo folder). If either of these fail, Onyo will error immediately and exit.

If the repository valid, the following checks are performed, and all problems are listed:

  • all asset names are unique

  • all files are valid YAML

  • all files follow the rules specified in .onyo/validation/validation.yaml

  • the git working tree is clean (no untracked or changed files)

  • all directories and sub-directories have a .anchor file

Files and directories matching rules in .gitignore will not be checked for validity.

usage: onyo fsck [-h]