tinyactors events

List every event name and the transitions, raises and sends using it.

Usage

shell
tinyactors events [options] INPUT...

Lists every event name the charts use. Counts the transitions that handle each one and the raises and sends that make it by name. Reads one image (.tai), one snapshot, one system manifest or SCXML charts, compiled together into one image first. --segment picks a snapshot's image, and - reads standard input.

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.
  • -c, --chart NAMELook at the chart named NAME only. Repeatable.
  • -s, --segment NRead the image that segment N of a snapshot runs. Default: the newest live segment.

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

Examples

shell
tinyactors events system.xml
output
# Events

## Events

| Name | Transitions | Raises | Sends |
| --- | --- | --- | --- |
| authorize | 1 | 0 | 0 |
| cancel | 1 | 0 | 0 |
| capture | 1 | 0 | 0 |
| charge | 0 | 0 | 1 |
| charge.declined | 2 | 0 | 0 |
| charge.ok | 1 | 0 | 0 |
| checkout | 1 | 0 | 0 |
| decline | 1 | 0 | 0 |
| error.communication | 2 | 0 | 0 |
| item.added | 1 | 0 | 0 |
| payment.timeout | 2 | 0 | 1 |
| shipped | 1 | 0 | 0 |
| void | 1 | 0 | 0 |

List the events of a system manifest's charts.

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