Skip to content

Commit 3d19722

Browse files
committed
docs: create demo.gif
1 parent d4dc967 commit 3d19722

File tree

4 files changed

+80
-1
lines changed

4 files changed

+80
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Usage:
1111
jwt-cli [command]
1212
1313
Available Commands:
14-
completion Generate the autocompletion script for the specified shell
1514
decode decode JWT token
1615
encode encode JWT token
1716
genkeys print commands example to generate keys for ES256, ES384, ES512, RS256, RS384, RS512
@@ -36,6 +35,9 @@ Supported methods are actually:
3635
* RS384
3736
* RS512
3837

38+
# Demo
39+
40+
![demo](doc/demo.gif)
3941

4042
# Install
4143

Taskfile.yml

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ tasks:
1919
cmds:
2020
- go get golang.org/x/tools/cmd/godoc
2121

22+
demo:
23+
desc: "Generate demo.gif"
24+
cmds:
25+
- vhs doc/demo.tape
26+
2227
doc:
2328
desc: "Run godoc server"
2429
cmds:

doc/demo.gif

273 KB
Loading

doc/demo.tape

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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

Comments
 (0)