Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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!


How do you use the recordings as part of the CI?


We made a tool using termsvg: https://github.com/DeepGuide-Ai/dg. It'll use recorded sessions and execute the non-interactive sessions during CI.


That sounds cool! An animated SVG? How do you convert to SVG format?


We use termsvg to convert cast to svg automatically. The tool is open source: https://github.com/DeepGuide-Ai/dg.


Thanks! I hadn't heard of it!


svg-term-cli I think. I found a post talking about it not long ago.

https://github.com/marionebl/svg-term-cli


Upon 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: