|
| 1 | +# VHS documentation |
| 2 | +# |
| 3 | +# Output: |
| 4 | +# Output <path>.gif Create a GIF output at the given <path> |
| 5 | +# Output <path>.mp4 Create an MP4 output at the given <path> |
| 6 | +# Output <path>.webm Create a WebM output at the given <path> |
| 7 | +# |
| 8 | +# Settings: |
| 9 | +# Set FontSize <number> Set the font size of the terminal |
| 10 | +# Set FontFamily <string> Set the font family of the terminal |
| 11 | +# Set Height <number> Set the height of the terminal |
| 12 | +# Set Width <number> Set the width of the terminal |
| 13 | +# Set LetterSpacing <float> Set the font letter spacing (tracking) |
| 14 | +# Set LineHeight <float> Set the font line height |
| 15 | +# Set Theme <string> Set the theme of the terminal (JSON) |
| 16 | +# Set Padding <number> Set the padding of the terminal |
| 17 | +# Set Framerate <number> Set the framerate of the recording |
| 18 | +# Set PlaybackSpeed <float> Set the playback speed of the recording |
| 19 | +# |
| 20 | +# Sleep: |
| 21 | +# Sleep <time> Sleep for a set amount of <time> in seconds |
| 22 | +# |
| 23 | +# Type: |
| 24 | +# Type[@<time>] "<characters>" Type <characters> into the terminal with a |
| 25 | +# <time> delay between each character |
| 26 | +# |
| 27 | +# Keys: |
| 28 | +# Backspace[@<time>] [number] Press the Backspace key |
| 29 | +# Down[@<time>] [number] Press the Down key |
| 30 | +# Enter[@<time>] [number] Press the Enter key |
| 31 | +# Space[@<time>] [number] Press the Space key |
| 32 | +# Tab[@<time>] [number] Press the Tab key |
| 33 | +# Left[@<time>] [number] Press the Left Arrow key |
| 34 | +# Right[@<time>] [number] Press the Right Arrow key |
| 35 | +# Up[@<time>] [number] Press the Up Arrow key |
| 36 | +# Down[@<time>] [number] Press the Down Arrow key |
| 37 | +# Ctrl+<key> Press the Control key + <key> (e.g. Ctrl+C) |
| 38 | +# |
| 39 | +# Display: |
| 40 | +# Hide Hide the subsequent commands from the output |
| 41 | +# Show Show the subsequent commands in the output |
| 42 | + |
| 43 | +Require jwt-cli |
| 44 | + |
| 45 | +Output doc/demo.gif |
| 46 | + |
| 47 | +Set FontSize 18 |
| 48 | +Set Width 1200 |
| 49 | +Set Height 600 |
| 50 | + |
| 51 | +Type "# create JWT token with encode subcommand" |
| 52 | +Enter |
| 53 | +Sleep 500ms |
| 54 | +Type `jwt-cli encode rs256 --pk tests/RS256.key --p '{ "email": " [email protected]" }' | tee /tmp/key` |
| 55 | +Enter |
| 56 | +Sleep 500ms |
| 57 | +Type "# Decode JWT token with decode subcommand" |
| 58 | +Enter |
| 59 | +Sleep 500ms |
| 60 | +Type `jwt-cli decode rs256 --pk tests/RS256.key --t "$(cat /tmp/key)"` |
| 61 | +Enter |
| 62 | +Sleep 1500ms |
| 63 | +Type "# jwt-cli handles many methods" |
| 64 | +Enter |
| 65 | +Sleep 500ms |
| 66 | +Type "jwt-cli encode --help" |
| 67 | +Enter |
| 68 | +Sleep 500ms |
| 69 | + |
| 70 | +Type "# END" |
| 71 | +Enter |
| 72 | +Sleep 4000ms |
0 commit comments