retrofit
0.15.0-wip.89
retrofit.sh

These docs are for 0.15.0-wip.89, a WIP, and may describe what no release does yet. The newest release is 0.14.0: this page for 0.14.0.

retrofit data check

Check data-corpus files against the data-file grammar.

Runs every file-level legality predicate over the working tree, emits no SQL
and mints nothing. Reports all findings in one envelope and exits non-zero when
any file is refused.

It also routes data-motion products' floors from their sources and lists each
routed record the routing cannot rewrite into its product as a
routed-body-unroutable warning, which leaves the exit status unchanged.

With no operands it walks the configured corpus root; an undeclared root that
does not exist is an empty corpus. Operands narrow the walk;
they do not enable it. A named directory is walked; a named file is checked by
the naming itself.

Synopsis

Usage:
  retrofit data check [path...] [flags]

Options

Flags:
      --data-root <path>   root <path> that overrides the schema's `data_root`
  -h, --help               help for check
      --help-all           show extended help (vocabulary, semantics, caveats)
      --schema <name>      registered schema <name> (resolves via the chain when omitted)

Global options

Global Flags:
      --as string        output mode: text | json (default "text")
  -C, --chdir string     treat <dir> as the working directory for the entire run
      --config string    retrofit.toml path (overrides discovery; also accepts $RETROFIT_CONFIG)
  -f, --file string      oplog file path; selects a registered [[schema]] path (overrides discovery)
      --no-consolidate   render every advisory occurrence instead of collapsing repeats
  -q, --quiet count      suppress the advisory tier on stderr; stack (-qq) to drop it whole (errors and results still print)
  -v, --verbose          reveal info-tier advisories on stderr
Docs: https://docs.retrofit.sh/wip/commands/retrofit-data-check/

Before 1.0, any release may change behavior; the release notes list what changed.

Published .