forked from commitizen-tools/commitizen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommit.tape
More file actions
133 lines (108 loc) · 2.65 KB
/
commit.tape
File metadata and controls
133 lines (108 loc) · 2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# VHS documentation https://github.com/charmbracelet/vhs
#
# Output:
# Output <path>.gif Create a GIF output at the given <path>
#
# Settings:
# Set FontSize <number> Set the font size of the terminal
# Set FontFamily <string> Set the font family of the terminal
# Set Height <number> Set the height of the terminal
# Set Width <number> Set the width of the terminal
# Set LetterSpacing <float> Set the letter spacing of the terminal
# Set LineHeight <float> Set the line height of the terminal
# Set Theme <json|string> Set the theme of the terminal
# Set Padding <number> Set the padding of the terminal
# Set TypingSpeed <time> Set the typing speed of the terminal
Output commit.gif
Require cz
# Use bash for cross-platform compatibility (macOS, Linux, Windows)
Set Shell bash
Set FontSize 16
Set Width 878
Set Height 568
Set Padding 20
Set TypingSpeed 50ms
Set Theme {
"name": "Commitizen",
"black": "#232628",
"red": "#fc4384",
"green": "#b3e33b",
"yellow": "#ffa727",
"blue": "#75dff2",
"magenta": "#ae89fe",
"cyan": "#708387",
"white": "#d5d5d0",
"brightBlack": "#626566",
"brightRed": "#ff7fac",
"brightGreen": "#c8ed71",
"brightYellow": "#ebdf86",
"brightBlue": "#75dff2",
"brightMagenta": "#ae89fe",
"brightCyan": "#b1c6ca",
"brightWhite": "#f9f9f4",
"background": "#1e1e2e",
"foreground": "#afafaf",
"cursor": "#c7c7c7"
}
# Hide initial shell prompt
Hide
# Wait for terminal to be ready
Sleep 1s
# Set a clean, simple prompt (while hidden)
Type "PS1='$ '"
Enter
Sleep 300ms
# Create a clean temporary directory for recording
Type "rm -rf /tmp/commitizen-demo && mkdir -p /tmp/commitizen-demo && cd /tmp/commitizen-demo"
Enter
Sleep 500ms
# Initialize git repository
Type "git init"
Enter
Sleep 500ms
Type "git checkout -b awesome-feature"
Enter
Sleep 500ms
# Create a dummy file to commit
Type "echo 'test content' > example.py"
Enter
Sleep 300ms
Type "git add example.py"
Enter
Sleep 300ms
# Clear the screen to start fresh
Type "clear"
Enter
Sleep 500ms
# Show commands from here
Show
# Now run cz commit
Type "cz commit"
Sleep 500ms
Enter
# Wait for first prompt to appear
Sleep 1s
# Question 1: Select the type of change (move down to "feat")
Down
Sleep 500ms
Enter
Sleep 1s
# Question 2: Scope (optional, skip)
Enter
Sleep 1s
# Question 3: Subject
Type "awesome new feature"
Sleep 500ms
Enter
Sleep 1s
# Question 4: Is this a BREAKING CHANGE? (No)
Enter
Sleep 1s
# Question 5: Body (optional, skip)
Enter
Sleep 1s
# Question 6: Footer (optional, skip)
Enter
Sleep 1s
# Wait for commit success message
Sleep 2s