tinyactors help
Describe a command or the program.
Usage
tinyactors help [COMMAND]Describes the program and its commands, or one command: its usage, options, examples and exit status.
Options
Configure output formats like -f json using the shared options on the command reference.
Examples
tinyactors help# Help
- **Name**: tinyactors
- **Summary**: Compile, check, run and inspect charts, images, snapshots and blobs
- **Usage**: `tinyactors [options] <command> [options] [arguments]`
## Commands
| Command | Summary |
| --- | --- |
| compile | Compile charts or a system manifest into an image |
| check | Check that charts compile or that an image verifies |
| inspect | Show what an image, a snapshot or a blob holds |
| states | List each chart's states as a tree in document order |
| transitions | List each chart's transitions with events, conditions and targets |
| events | List every event name and the transitions, raises and sends using it |
| data | List each chart's data declarations |
| expressions | List each chart's expressions and scripts with where they are |
| disassemble | List each chart's executable content instruction by instruction |
| graph | Draw each chart, or list its boxes and edges |
| diff | Compare two versions and show what changes for running actors |
| lint | Find what cannot work as written in charts |
| path | Find the shortest path to a state: events, conditions and transitions |
| fmt | Rewrite charts and system manifests in the canonical layout |
| actors | List every actor of a snapshot with its state and queues |
| run | Serve one host over JSON-RPC 2.0 on standard input and output |
| help | Describe a command or the program |
| version | Print the versions of the program and its library |
## Program options
| Option | Description | Values |
| --- | --- | --- |
| -f, --format FORMAT | Write the answer in FORMAT; only graph answers in svg. Default: markdown. | markdown, json, xml, svg |
| -h, --help | Describe the command or the program. | |
| --version | Print the version as the version command does. | |
- **More**: `tinyactors help <command> describes a command`List the commands.
tinyactors help compile# Help
- **Name**: compile
- **Summary**: Compile charts or a system manifest into an image
- **Usage**: tinyactors compile [options] INPUT...
- **Description**: Compiles SCXML charts or one system manifest into a .tai image. The first chart is the image's default boot chart. Each static src is read relative to the file that names it, then in each -I directory. The answer lists the diagnostics and what the image holds. With -o -, the image goes to standard output and the answer to standard error.
## Options
| Option | Description | Values |
| --- | --- | --- |
| -W, --warnings-as-errors | Refuse a chart that compiles with a warning. | |
| -I, --include DIR | Search DIR for a src that is not beside the file naming it, in the order given. Repeatable. | |
| -o, --output FILE | Write the image to FILE, or to standard output when FILE is -. | |
| -e, --emit KIND | Write the image as KIND. Values: image (the image's bytes) or c (an 8-aligned C array). Default: image. | image, c |
| -s, --symbol NAME | Name the C array NAME with --emit c; NAME is a C identifier. Default: tinyactors_image. | |
## Program options
| Option | Description | Values |
| --- | --- | --- |
| -f, --format FORMAT | Write the answer in FORMAT; only graph answers in svg. Default: markdown. | markdown, json, xml, svg |
| -h, --help | Describe the command or the program. | |
| --version | Print the version as the version command does. | |
## Examples
| Caption | Command |
| --- | --- |
| Compile two charts into one image: | tinyactors compile order.scxml payment.scxml -o order.tai |
| Compile a system manifest into an image: | tinyactors compile system.xml -o system.tai |
| Write the image as a C array named order_image: | tinyactors compile order.scxml --emit c --symbol order_image -o order_image.c |
| Compile to standard output and inspect the image: | tinyactors compile order.scxml -o - \| tinyactors inspect - |
## Exit status
| Code | Meaning |
| --- | --- |
| 1 | An input is refused: it does not compile, or it is of an unknown format. |
| 3 | An input cannot be read, the image cannot be written or memory runs out. |Describe the compile command.
tinyactors help -f json inspect{
"name": "inspect",
"summary": "Show what an image, a snapshot or a blob holds",
"usage": "tinyactors inspect [options] INPUT...",
"description": "Shows an image's sections, charts and boot actors; it reads its inputs as the other commands do. Shows a snapshot's format, system, time, segments with their images and actors. Shows the datamodels' state of a snapshot too, decoded when it is CBOR. Shows the session a hibernation or export blob holds, the image it was written with and who can wake it. Shows a blob's datamodel state, and its chart and configuration when the image follows it: an image, charts or a snapshot.",
"options": [
{
"option": "-W, --warnings-as-errors",
"description": "Refuse a chart that compiles with a warning.",
"values": ""
},
{
"option": "-I, --include DIR",
"description": "Search DIR for a src that is not beside the file naming it, in the order given. Repeatable.",
"values": ""
},
{
"option": "-c, --chart NAME",
"description": "Look at the chart named NAME only. Repeatable.",
"values": ""
},
{
"option": "-s, --segment N",
"description": "Read the image that segment N of a snapshot runs. Default: the newest live segment.",
"values": ""
}
],
"programOptions": [
{
"option": "-f, --format FORMAT",
"description": "Write the answer in FORMAT; only graph answers in svg. Default: markdown.",
"values": "markdown, json, xml, svg"
},
{
"option": "-h, --help",
"description": "Describe the command or the program.",
"values": ""
},
{
"option": "--version",
"description": "Print the version as the version command does.",
"values": ""
}
],
"examples": [
{
"caption": "Show what an image holds:",
"command": "tinyactors inspect order.tai"
},
{
"caption": "Compile a system manifest and show its image:",
"command": "tinyactors inspect system.xml"
},
{
"caption": "Compile a chart and show its image as JSON:",
"command": "tinyactors inspect --format json order.scxml"
},
{
"caption": "Show what a snapshot holds:",
"command": "tinyactors inspect shop.snapshot"
},
{
"caption": "Show a blob with its chart and configuration from a snapshot:",
"command": "tinyactors inspect order-17.blob shop.snapshot"
}
],
"exitStatus": [
{
"code": 1,
"meaning": "An input is refused: it does not compile or verify, or it is damaged or of an unknown format."
},
{
"code": 3,
"meaning": "A file cannot be read or written, or memory runs out."
}
]
}Describe the inspect command in JSON.
Related pages
tinyactors versionPrint the versions of the program and its library.