VHS
Sometimes, A picture is worth a thousand words. VHS is the perfect tool to explain in animated image how to use command line tools
VHS is a substantially identical tool at
asciinema. Nevertheless VHS uses an approach
declarative (via the creation of a .tape
file). It allows you to automate the
execution of a scenario composed of a series of commands to be executed, to then
record the results of the actions in the form of videos in different formats
(webm, mp4, gif), which can be particularly useful for documentation or
knowledge sharing.
Starting from this demo-vhs.tape
file
Output demo-vhs.gif
Require nix
Set TypingSpeed 75ms
Set FontSize 18
Set Width 800
Set Height 680
Type "# Install the needed packages" Sleep 500ms Enter Enter Sleep 2s
Type "nix-shell -p dotacat neofetch"
Type "neofetch" Sleep 500ms Enter Sleep 2s
Type "dotacat --help | dotacat" Sleep 500ms Enter
Sleep 5s
We obtain the result below with the following command vhs demo-vhs.tape