Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/norfairking/autorecorder
- Owner: NorfairKing
- Created: 2020-09-26T12:38:06.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-28T10:14:33.000Z (over 1 year ago)
- Last Synced: 2024-08-02T13:32:23.357Z (5 months ago)
- Language: Haskell
- Size: 130 KB
- Stars: 41
- Watchers: 4
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
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!).