reference ·
oto rules --help at v0.6.1oto rules
validate, dry-run, diff and accept the rules over the graph
oto rules [-h] [--project PROJECT] [--show SHOW] [--strict]
[{check,diff,accept,explain}] [rule_id]
Verbs
checkvalidates and dry-runsdiffcompares with the accepted setacceptrecords itexplain <id>prints a rule's reason, its pattern and what it did on the last build
rule_id for explain: the rule to explain (none: one line per rule)
Options
| Option | What it does |
|---|---|
--project PROJECT | project root (default: current directory) |
--show SHOW | how many items to list per section |
--strict | for diff: exit non-zero on a breaking change |
Where to use it
You wrote a rule. What would it derive, and is it valid?
oto rules check --project claimsvalidates every rule and dry-runs it over the graph
Before accepting a changed rule set.
oto rules diff --project claims
oto rules accept --project claimscompares with the accepted set, then records it
Why does this derived fact exist?
oto rules explain --project claims r-adjuster-authoritythe rule's reason, its pattern and what it did on the last build
As the terminal prints it
usage: oto rules [-h] [--project PROJECT] [--show SHOW] [--strict]
[{check,diff,accept,explain}] [rule_id]
positional arguments:
{check,diff,accept,explain}
check validates and dry-runs; diff compares with the accepted set; accept
records it; explain <id> prints a rule's reason, its pattern and what it
did on the last build
rule_id for explain: the rule to explain (none: one line per rule)
options:
-h, --help show this help message and exit
--project PROJECT project root (default: current directory)
--show SHOW how many items to list per section
--strict for diff: exit non-zero on a breaking change