diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..49b5b77 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.gif +*.pdf diff --git a/examples/contacts.txt b/examples/contacts.txt new file mode 100644 index 0000000..5625110 --- /dev/null +++ b/examples/contacts.txt @@ -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 diff --git a/examples/gum-example.tape b/examples/gum-example.tape new file mode 100644 index 0000000..019e8fe --- /dev/null +++ b/examples/gum-example.tape @@ -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 diff --git a/examples/invoice-example.tape b/examples/invoice-example.tape new file mode 100644 index 0000000..71fe0e2 --- /dev/null +++ b/examples/invoice-example.tape @@ -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 diff --git a/examples/mods-example.tape b/examples/mods-example.tape new file mode 100644 index 0000000..cc36123 --- /dev/null +++ b/examples/mods-example.tape @@ -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