Typing effect cli tool for screencasts and demos
Star it here: https://github.com/vim-zz/swordfish-rs
- Describe what you are doing
- Run any terminal command and get their outputs to screen
-
Reproducible steps - iterate on the
screenplay
file till perfection - Mimics real person behavior with realtime typing into terminal
Example screenplay.yaml
file:
- !clear
# - !turbo {by: 3}
- !write {msec: 0, color: green, text: "$ "}
- !write {msec: 20, text: "i am going to list this dir"}
- !wait {msec: 1000}
- !erase {msec: 20, by_chars: xxxxxxxxxxxxxxxxxxxxxxxxxxx }
- !wait {msec: 1000}
- !write {msec: 20, text: ls}
- !wait {msec: 1000}
- !execute {line: ls -la}
- !wait {msec: 3000}
- !write {msec: 1000, color: green, text: "$ "}
- !write {msec: 20, text: "bye, press any key..."}
- !pause
swordfish screenplay.yaml