Skip to content

Commit abff812

Browse files
ttw225bearomorphism
authored andcommitted
docs(images): reuse shared snippets in cli tapes
1 parent 198cb10 commit abff812

File tree

5 files changed

+23
-293
lines changed

5 files changed

+23
-293
lines changed

docs/images/bump.tape

Lines changed: 5 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,17 @@
11
Output cli_interactive/bump.gif
22

3-
Require cz
4-
5-
# Use bash for cross-platform compatibility (macOS, Linux, Windows)
6-
Set Shell bash
7-
8-
Set FontSize 16
9-
Set Width 878
10-
Set Height 568
11-
Set Padding 20
12-
Set TypingSpeed 50ms
13-
14-
Set Theme {
15-
"name": "Commitizen",
16-
"black": "#232628",
17-
"red": "#fc4384",
18-
"green": "#b3e33b",
19-
"yellow": "#ffa727",
20-
"blue": "#75dff2",
21-
"magenta": "#ae89fe",
22-
"cyan": "#708387",
23-
"white": "#d5d5d0",
24-
"brightBlack": "#626566",
25-
"brightRed": "#ff7fac",
26-
"brightGreen": "#c8ed71",
27-
"brightYellow": "#ebdf86",
28-
"brightBlue": "#75dff2",
29-
"brightMagenta": "#ae89fe",
30-
"brightCyan": "#b1c6ca",
31-
"brightWhite": "#f9f9f4",
32-
"background": "#1e1e2e",
33-
"foreground": "#afafaf",
34-
"cursor": "#c7c7c7"
35-
}
36-
37-
# Hide initial shell prompt
38-
Hide
39-
40-
# Wait for terminal to be ready
41-
Sleep 1s
42-
43-
# Set a clean, simple prompt (while hidden)
44-
Type "PS1='$ '"
45-
Enter
46-
Sleep 300ms
47-
48-
# Create a clean temporary directory for recording
49-
Type "rm -rf /tmp/commitizen-example && mkdir -p /tmp/commitizen-example && cd /tmp/commitizen-example"
50-
Enter
51-
Sleep 500ms
52-
53-
# Initialize git repository
54-
Type "git init"
55-
Enter
56-
Type "git config user.email 'you@example.com'"
57-
Enter
58-
Type "git config user.name 'Your Name'"
59-
Enter
60-
Sleep 500ms
3+
Source shared/base.tape
4+
Source shared/git_init.tape
615

626
# Initialize commitizen config with version 0.0.1 and changelog enabled
637
Type `cat > pyproject.toml << 'EOF'`
648
Enter
65-
Sleep 100ms
669
Type `[tool.commitizen]`
6710
Enter
68-
Sleep 100ms
6911
Type `version = "0.0.1"`
7012
Enter
71-
Sleep 100ms
7213
Type `update_changelog_on_bump = true`
7314
Enter
74-
Sleep 100ms
7515
Type "EOF"
7616
Enter
7717
Sleep 300ms
@@ -131,4 +71,6 @@ Enter
13171
Sleep 1s
13272

13373
# Wait for final output
134-
Sleep 3s
74+
Sleep 1s
75+
76+
Source shared/cleanup.tape

docs/images/commit.tape

Lines changed: 5 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,7 @@
11
Output cli_interactive/commit.gif
22

3-
Require cz
4-
5-
# Use bash for cross-platform compatibility (macOS, Linux, Windows)
6-
Set Shell bash
7-
8-
Set FontSize 16
9-
Set Width 878
10-
Set Height 568
11-
Set Padding 20
12-
Set TypingSpeed 50ms
13-
14-
Set Theme {
15-
"name": "Commitizen",
16-
"black": "#232628",
17-
"red": "#fc4384",
18-
"green": "#b3e33b",
19-
"yellow": "#ffa727",
20-
"blue": "#75dff2",
21-
"magenta": "#ae89fe",
22-
"cyan": "#708387",
23-
"white": "#d5d5d0",
24-
"brightBlack": "#626566",
25-
"brightRed": "#ff7fac",
26-
"brightGreen": "#c8ed71",
27-
"brightYellow": "#ebdf86",
28-
"brightBlue": "#75dff2",
29-
"brightMagenta": "#ae89fe",
30-
"brightCyan": "#b1c6ca",
31-
"brightWhite": "#f9f9f4",
32-
"background": "#1e1e2e",
33-
"foreground": "#afafaf",
34-
"cursor": "#c7c7c7"
35-
}
36-
37-
# Hide initial shell prompt
38-
Hide
39-
40-
# Wait for terminal to be ready
41-
Sleep 1s
42-
43-
# Set a clean, simple prompt (while hidden)
44-
Type "PS1='$ '"
45-
Enter
46-
Sleep 300ms
47-
48-
# Create a clean temporary directory for recording
49-
Type "rm -rf /tmp/commitizen-demo && mkdir -p /tmp/commitizen-demo && cd /tmp/commitizen-demo"
50-
Enter
51-
Sleep 500ms
52-
53-
# Initialize git repository
54-
Type "git init"
55-
Enter
56-
Type "git config user.email 'you@example.com'"
57-
Enter
58-
Type "git config user.name 'Your Name'"
59-
Enter
60-
Sleep 500ms
3+
Source shared/base.tape
4+
Source shared/git_init.tape
615

626
Type "git checkout -b awesome-feature"
637
Enter
@@ -117,4 +61,6 @@ Enter
11761
Sleep 1s
11862

11963
# Wait for commit success message
120-
Sleep 2s
64+
Sleep 1s
65+
66+
Source shared/cleanup.tape

docs/images/init.tape

Lines changed: 5 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,6 @@
11
Output cli_interactive/init.gif
22

3-
Require cz
4-
5-
# Use bash for cross-platform compatibility (macOS, Linux, Windows)
6-
Set Shell bash
7-
8-
Set FontSize 16
9-
Set Width 878
10-
Set Height 568
11-
Set Padding 20
12-
Set TypingSpeed 50ms
13-
14-
Set Theme {
15-
"name": "Commitizen",
16-
"black": "#232628",
17-
"red": "#fc4384",
18-
"green": "#b3e33b",
19-
"yellow": "#ffa727",
20-
"blue": "#75dff2",
21-
"magenta": "#ae89fe",
22-
"cyan": "#708387",
23-
"white": "#d5d5d0",
24-
"brightBlack": "#626566",
25-
"brightRed": "#ff7fac",
26-
"brightGreen": "#c8ed71",
27-
"brightYellow": "#ebdf86",
28-
"brightBlue": "#75dff2",
29-
"brightMagenta": "#ae89fe",
30-
"brightCyan": "#b1c6ca",
31-
"brightWhite": "#f9f9f4",
32-
"background": "#1e1e2e",
33-
"foreground": "#afafaf",
34-
"cursor": "#c7c7c7"
35-
}
36-
37-
# Hide initial shell prompt
38-
Hide
39-
40-
# Wait for terminal to be ready
41-
Sleep 1s
42-
43-
# Set a clean, simple prompt
44-
Type "PS1='$ '"
45-
Enter
46-
Sleep 300ms
47-
48-
49-
# Create a clean temporary directory for recording
50-
Type "rm -rf /tmp/commitizen-example && mkdir -p /tmp/commitizen-example && cd /tmp/commitizen-example"
51-
Enter
52-
Sleep 500ms
3+
Source shared/base.tape
534

545
# Clear the screen to start fresh
556
Type "clear"
@@ -67,6 +18,7 @@ Enter
6718
# Wait for welcome message and first prompt
6819
Sleep 500ms
6920
Sleep 1s
21+
7022
# Question 1: Please choose a supported config file
7123
# Default is .cz.toml, just press Enter
7224
Enter
@@ -108,4 +60,6 @@ Enter
10860
Sleep 1s
10961

11062
# Wait for completion message
111-
Sleep 3s
63+
Sleep 1s
64+
65+
Source shared/cleanup.tape

docs/images/shortcut_custom.tape

Lines changed: 4 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,7 @@
11
Output cli_interactive/shortcut_custom.gif
22

3-
Require cz
4-
5-
# Use bash for cross-platform compatibility (macOS, Linux, Windows)
6-
Set Shell bash
7-
8-
Set FontSize 16
9-
Set Width 878
10-
Set Height 568
11-
Set Padding 20
12-
Set TypingSpeed 50ms
13-
14-
Set Theme {
15-
"name": "Commitizen",
16-
"black": "#232628",
17-
"red": "#fc4384",
18-
"green": "#b3e33b",
19-
"yellow": "#ffa727",
20-
"blue": "#75dff2",
21-
"magenta": "#ae89fe",
22-
"cyan": "#708387",
23-
"white": "#d5d5d0",
24-
"brightBlack": "#626566",
25-
"brightRed": "#ff7fac",
26-
"brightGreen": "#c8ed71",
27-
"brightYellow": "#ebdf86",
28-
"brightBlue": "#75dff2",
29-
"brightMagenta": "#ae89fe",
30-
"brightCyan": "#b1c6ca",
31-
"brightWhite": "#f9f9f4",
32-
"background": "#1e1e2e",
33-
"foreground": "#afafaf",
34-
"cursor": "#c7c7c7"
35-
}
36-
37-
# Hide initial shell prompt
38-
Hide
39-
40-
# Wait for terminal to be ready
41-
Sleep 1s
42-
43-
# Set a clean, simple prompt (while hidden)
44-
Type "PS1='$ '"
45-
Enter
46-
Sleep 300ms
47-
48-
# Create a clean temporary directory for recording
49-
Type "rm -rf /tmp/commitizen-example && mkdir -p /tmp/commitizen-example && cd /tmp/commitizen-example"
50-
Enter
51-
Sleep 500ms
52-
53-
# Initialize git repository
54-
Type "git init"
55-
Enter
56-
Type "git config user.email 'you@example.com'"
57-
Enter
58-
Type "git config user.name 'Your Name'"
59-
Enter
60-
Sleep 500ms
3+
Source shared/base.tape
4+
Source shared/git_init.tape
615

626
Type "git checkout -b awesome-docs"
637
Enter
@@ -157,3 +101,5 @@ Sleep 500ms
157101

158102
# Wait for commit success message
159103
Sleep 1s
104+
105+
Source shared/cleanup.tape

docs/images/shortcut_default.tape

Lines changed: 4 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,7 @@
11
Output cli_interactive/shortcut_default.gif
22

3-
Require cz
4-
5-
# Use bash for cross-platform compatibility (macOS, Linux, Windows)
6-
Set Shell bash
7-
8-
Set FontSize 16
9-
Set Width 878
10-
Set Height 568
11-
Set Padding 20
12-
Set TypingSpeed 50ms
13-
14-
Set Theme {
15-
"name": "Commitizen",
16-
"black": "#232628",
17-
"red": "#fc4384",
18-
"green": "#b3e33b",
19-
"yellow": "#ffa727",
20-
"blue": "#75dff2",
21-
"magenta": "#ae89fe",
22-
"cyan": "#708387",
23-
"white": "#d5d5d0",
24-
"brightBlack": "#626566",
25-
"brightRed": "#ff7fac",
26-
"brightGreen": "#c8ed71",
27-
"brightYellow": "#ebdf86",
28-
"brightBlue": "#75dff2",
29-
"brightMagenta": "#ae89fe",
30-
"brightCyan": "#b1c6ca",
31-
"brightWhite": "#f9f9f4",
32-
"background": "#1e1e2e",
33-
"foreground": "#afafaf",
34-
"cursor": "#c7c7c7"
35-
}
36-
37-
# Hide initial shell prompt
38-
Hide
39-
40-
# Wait for terminal to be ready
41-
Sleep 1s
42-
43-
# Set a clean, simple prompt (while hidden)
44-
Type "PS1='$ '"
45-
Enter
46-
Sleep 300ms
47-
48-
# Create a clean temporary directory for recording
49-
Type "rm -rf /tmp/commitizen-example && mkdir -p /tmp/commitizen-example && cd /tmp/commitizen-example"
50-
Enter
51-
Sleep 500ms
52-
53-
# Initialize git repository
54-
Type "git init"
55-
Enter
56-
Type "git config user.email 'you@example.com'"
57-
Enter
58-
Type "git config user.name 'Your Name'"
59-
Enter
60-
Sleep 500ms
3+
Source shared/base.tape
4+
Source shared/git_init.tape
615

626
Type "git checkout -b awesome-docs"
637
Enter
@@ -66,16 +10,12 @@ Sleep 500ms
6610
# Initialize commitizen config with shortcuts enabled
6711
Type `cat > pyproject.toml << 'EOF'`
6812
Enter
69-
Sleep 100ms
7013
Type `[tool.commitizen]`
7114
Enter
72-
Sleep 100ms
7315
Type `name = "cz_conventional_commits"`
7416
Enter
75-
Sleep 100ms
7617
Type `use_shortcuts = true`
7718
Enter
78-
Sleep 100ms
7919
Type "EOF"
8020
Enter
8121
Sleep 300ms
@@ -136,3 +76,5 @@ Sleep 500ms
13676

13777
# Wait for commit success message
13878
Sleep 1s
79+
80+
Source shared/cleanup.tape

0 commit comments

Comments
 (0)