| 1 |
Output cli_interactive/commit.gif |
| 2 |
|
| 3 |
Source shared/base.tape |
| 4 |
Source shared/git_init.tape |
| 5 |
|
| 6 |
Type "git checkout -b awesome-feature" |
| 7 |
Enter |
| 8 |
Sleep 500ms |
| 9 |
|
| 10 |
# Create a dummy file to commit |
| 11 |
Type "echo 'test content' > example.py" |
| 12 |
Enter |
| 13 |
Sleep 300ms |
| 14 |
|
| 15 |
Type "git add example.py" |
| 16 |
Enter |
| 17 |
Sleep 300ms |
| 18 |
|
| 19 |
# Clear the screen to start fresh |
| 20 |
Type "clear" |
| 21 |
Enter |
| 22 |
Sleep 500ms |
| 23 |
|
| 24 |
# Show commands from here |
| 25 |
Show |
| 26 |
|
| 27 |
# Now run cz commit |
| 28 |
Type "cz commit" |
| 29 |
Sleep 500ms |
| 30 |
Enter |
| 31 |
|
| 32 |
# Q1: prefix -- select the type of change (move down to "feat") |
| 33 |
Wait+Screen /Select the type of change/ |
| 34 |
Sleep 500ms |
| 35 |
Down |
| 36 |
Sleep 500ms |
| 37 |
Enter |
| 38 |
|
| 39 |
# Q2: scope (optional, skip) |
| 40 |
Wait+Screen /What is the scope/ |
| 41 |
Sleep 500ms |
| 42 |
Enter |
| 43 |
|
| 44 |
# Q3: subject |
| 45 |
Wait+Screen /imperative summary/ |
| 46 |
Sleep 500ms |
| 47 |
Type "awesome new feature" |
| 48 |
Sleep 500ms |
| 49 |
Enter |
| 50 |
|
| 51 |
# Q4: body (optional, skip) |
| 52 |
Wait+Screen /additional contextual information/ |
| 53 |
Sleep 500ms |
| 54 |
Enter |
| 55 |
|
| 56 |
# Q5: is_breaking_change (No) |
| 57 |
Wait+Screen /BREAKING CHANGE\?/ |
| 58 |
Sleep 500ms |
| 59 |
Enter |
| 60 |
|
| 61 |
# Q6: footer (optional, skip) |
| 62 |
Wait+Screen /Footer\. Information/ |
| 63 |
Sleep 500ms |
| 64 |
Enter |
| 65 |
|
| 66 |
# Wait for commit success message |
| 67 |
Sleep 2s |
| 68 |
|
| 69 |
Source shared/cleanup.tape |