Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/norfairking/autorecorder

An automatic declarative ASCIInema recorder
https://github.com/norfairking/autorecorder

Last synced: about 2 months ago
JSON representation

An automatic declarative ASCIInema recorder

Awesome Lists containing this project

README

        

# ASCIInema Autorecorder

An automatic [`asciinema`](https://asciinema.org/) cast recorder.

Instead of having to manually type in the commands while `asciinema rec` is recording, you can specify what needs to happen declaratively.

This is an example spec file that shows how to use `autorecorder` in a cast (very meta):

[![asciicast](https://asciinema.org/a/362623.png)](https://asciinema.org/a/362623)

```
packages:
- autorecorder
- asciinema
working-dir: .
file: echo.cast
environment:
ASCIINEMA_CONFIG_HOME:
"./config/asciinema"
input:
- type: "autorecorder echo.yaml echo.cast --progress\n"
- wait: 10000
- type: "asciinema play echo.cast\n"
- wait: 10000
```

I would put a link to the output cast here as well but https://asciinema.org is currently having trouble with uploads and logins.
See the `examples` directory for more examples.

For the full spec file format, try recording a cast for an invalid spec file, and the error message will show you the format (in colour!).