feat: example tapes

This commit is contained in:
Maas Lalani 2023-07-10 21:04:47 -04:00
parent 10c7b1d96a
commit d52645ac30
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000
5 changed files with 90 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*.gif
*.pdf

10
examples/contacts.txt Normal file
View file

@ -0,0 +1,10 @@
ayman@charm.sh
bash@charm.sh
carlos@charm.sh
christian@charm.sh
jz@charm.sh
maas@charm.sh
muesli@charm.sh
pop@charm.sh
toby@charm.sh
vt100@charm.sh

30
examples/gum-example.tape Normal file
View file

@ -0,0 +1,30 @@
Output gum-example.gif
Set Framerate 30
Set FontSize 28
Set Padding 40
Set Width 1200
Set Height 800
Hide
Type "export RESEND_API_KEY=$(pass RESEND_CHARM_API_KEY)"
Enter
Sleep 1
Ctrl+L
Show
Type `pop --from "$(gum choose vt{52,78,100}@charm.sh)" \` Enter
Type ` --to "$(gum filter < contacts.txt)"` Enter
Sleep 1s
Down@200ms 2
Sleep 1s
Enter
Sleep 1s
Type "pop"
Sleep 1s
Enter
Sleep 5s

View file

@ -0,0 +1,19 @@
Output invoice-example.gif
Set Framerate 30
Set FontSize 28
Set Padding 40
Set Width 1200
Set Height 800
Hide
Type "export RESEND_API_KEY=$(pass RESEND_CHARM_API_KEY)"
Enter
Sleep 1
Ctrl+L
Show
Type `invoice generate -i "Rubber Ducky" -r 25 -q 2 -o invoice.pdf` Enter
Sleep 1s
Type `pop --attach invoice.pdf --body "See attached invoice."` Enter
Sleep 5s

View file

@ -0,0 +1,29 @@
Output mods-example.gif
Set Framerate 30
Set FontSize 28
Set Padding 40
Set Width 1200
Set Height 800
Hide
Type "export RESEND_API_KEY=$(pass RESEND_CHARM_API_KEY)"
Enter
Sleep 1
Type "export OPENAI_API_KEY=$(pass OPENAI_API_KEY)"
Enter
Sleep 1
Ctrl+L
Show
Type `pop <<< "$(mods -f 'Explain why CLIs are awesome')" \` Enter
Type ` --subject "The command line is the best" \` Enter
Type ` --preview` Enter
Sleep 5s
Hide
Sleep 60s
Show
Sleep 5s