tinyactors check

Check that charts compile or that an image verifies.

Usage

shell
tinyactors check [options] INPUT...

Compiles the inputs, or verifies an image or every image of a snapshot. Writes nothing but whether they are valid and the diagnostics.

Options

  • -W, --warnings-as-errorsRefuse a chart that compiles with a warning.
  • -I, --include DIRSearch DIR for a src that is not beside the file naming it, in the order given. Repeatable.

Configure output formats like -f json using the shared options on the command reference.

Examples

shell
tinyactors check charts/*.scxml
output
# Check

## Inputs

- charts/order.scxml
- charts/payment.scxml

- **Valid**: yes
- **Bytes**: 3568
- **Hash**: a5b071eec6fba4c8
- **Charts**: 2
- **Boot actors**: 1

## Diagnostics

_none_

Check that every chart in a directory compiles.

shell
tinyactors check -W --format json order.scxml
output
{
  "inputs": [
    "order.scxml"
  ],
  "valid": true,
  "bytes": 2720,
  "hash": "5e66ab57693504aa",
  "charts": 1,
  "bootActors": 1,
  "diagnostics": []
}

Refuse a chart with a warning and answer in JSON.

Exit status

  • 1An input is refused: it does not compile or verify, or it is damaged or of an unknown format.
  • 3A file cannot be read or written, or memory runs out.

Related pages