6 ms·
We use asciinema to record CLI tools terminals and add the recordings as svg to our README. We also use the recordings to replay as part of our CI. works great!
by taoh 1y ago
We use asciinema to record CLI tools terminals and add the recordings as svg to our README. We also use the recordings to replay as part of our CI. works great!
- iib 1y agoHow do you use the recordings as part of the CI?
- deleted 1y ago[deleted]
- taoh 1y agoWe made a tool using termsvg: https://github.com/DeepGuide-Ai/dg https://github.com/DeepGuide-Ai/dg. It'll use recorded sessions and execute the non-interactive sessions during CI.
- kragen 1y agoThat sounds cool! An animated SVG? How do you convert to SVG format?
- _ache_ 1y agosvg-term-cli I think. I found a post talking about it not long ago. https://github.com/marionebl/svg-term-cli https://github.com/marionebl/svg-term-cli
- taoh 1y agoWe use termsvg to convert cast to svg automatically. The tool is open source: https://github.com/DeepGuide-Ai/dg https://github.com/DeepGuide-Ai/dg.
- kragen 1y agoThanks! I hadn't heard of it!
- kragen 1y agoUpon investigation, both dg and svg-term-cli output SVG with embedded CSS animation. So it's not that SVG supports animation per se. This also remodels my understanding of what CSS animation can do.