Pass a qualified Rule name or an unambiguous bare name with --input to see
how that Rule applied in a Form. The explanation covers matches, emissions,
interpreted instances, undecided candidates, closure outcomes, and facts with
their evidence. To read the Rule definition without an input, use
show. For one resource address, use explain instance.
The input is read as run reads it: plan JSON and state JSON are compiled
with the project's Dialects, a saved Form is loaded, and - reads standard
input. --stage selects a stage; the default is Planned for a plan and
Recorded for a state. A comparison Form requires --side before or
--side after. The selected side's recorded stage applies unless --stage
names another.
rootform explain rule <rule> --input <input> [options]From the commerce plan, save a Form and inspect how the subnet Rule applied:
rootform run examples/playground/commerce-platform/head/plan.json \ --plan-file examples/playground/commerce-platform/head/plan.tfplan \ --no-serve -o analysis.jsonrootform explain rule azure.rule.subnet --input analysis.json --color alwaysRule explainedRule azure.rule.subnetMatches resource azurerm_subnetConcept rf.concept.subnetApplied to 7 instancesText is the default output; --format json serves tools. The explanation
goes to standard output, while progress and errors go to standard error.
Status 0 means the Rule was explained; 1 means the input's semantics have
no Rule with that name; 2 means incorrect usage; 3 means the input was
refused, rootform.lock is invalid, the stage or side is unavailable, or the
name is ambiguous; 4 means the input could not be read. For Rule meaning,
see Dialects and RF Vocabulary.