{
  "description": "Run the check hook over a repository with hk check. Other hk commands, hook subcommands and output options are left out.",
  "name": "hk",
  "subcommands": [
    {
      "name": "check",
      "description": "Run each step's check command on selected files.",
      "options": [
        {
          "names": [
            "--all",
            "-a"
          ],
          "description": "All files"
        },
        {
          "names": [
            "--fix",
            "-f"
          ],
          "description": "Runs fix commands, which can modify files.",
          "isDangerous": true
        },
        {
          "names": [
            "--staged"
          ],
          "description": "Staged files only"
        },
        {
          "names": [
            "--pr"
          ],
          "description": "Files changed in this branch"
        },
        {
          "names": [
            "--plan",
            "-P"
          ],
          "description": "Print plan only"
        },
        {
          "names": [
            "--step",
            "-S"
          ],
          "description": "Only step",
          "args": {
            "name": "step",
            "isOptional": false,
            "isVariadic": true
          },
          "isRepeatable": true
        },
        {
          "names": [
            "--skip-step"
          ],
          "description": "Skip step",
          "args": {
            "name": "skip_step",
            "isOptional": false,
            "isVariadic": true
          },
          "isRepeatable": true
        },
        {
          "names": [
            "--glob",
            "-g"
          ],
          "description": "Glob",
          "args": {
            "name": "glob",
            "isOptional": false,
            "isVariadic": true
          },
          "isRepeatable": true
        },
        {
          "names": [
            "--from-ref"
          ],
          "description": "From ref",
          "args": {
            "name": "from_ref",
            "isOptional": false
          }
        },
        {
          "names": [
            "--to-ref"
          ],
          "description": "To ref",
          "args": {
            "name": "to_ref",
            "isOptional": false
          }
        }
      ],
      "args": [
        {
          "name": "files",
          "isOptional": true,
          "isVariadic": true,
          "template": "filepaths"
        }
      ]
    }
  ]
}
