| 1 |
Output cli_interactive/shortcut_default.gif |
| 2 |
|
| 3 |
Source shared/base.tape |
| 4 |
Source shared/git_init.tape |
| 5 |
|
| 6 |
Type "git checkout -b awesome-docs" |
| 7 |
Enter |
| 8 |
Sleep 500ms |
| 9 |
|
| 10 |
# Initialize commitizen config with shortcuts enabled |
| 11 |
Type `cat > pyproject.toml << 'EOF'` |
| 12 |
Enter |
| 13 |
Type `[tool.commitizen]` |
| 14 |
Enter |
| 15 |
Type `name = "cz_conventional_commits"` |
| 16 |
Enter |
| 17 |
Type `use_shortcuts = true` |
| 18 |
Enter |
| 19 |
Type "EOF" |
| 20 |
Enter |
| 21 |
Sleep 300ms |
| 22 |
|
| 23 |
# Create a dummy file to commit |
| 24 |
Type "echo 'test content' > README.md" |
| 25 |
Enter |
| 26 |
Sleep 300ms |
| 27 |
|
| 28 |
Type "git add README.md" |
| 29 |
Enter |
| 30 |
Sleep 300ms |
| 31 |
|
| 32 |
# Clear the screen to start fresh |
| 33 |
Type "clear" |
| 34 |
Enter |
| 35 |
Sleep 500ms |
| 36 |
|
| 37 |
# Show commands from here |
| 38 |
Show |
| 39 |
|
| 40 |
# Now run cz commit |
| 41 |
Type "cz commit" |
| 42 |
Sleep 500ms |
| 43 |
Enter |
| 44 |
|
| 45 |
# Q1: prefix -- press "d" shortcut for "docs" |
| 46 |
Wait+Screen /Select the type of change/ |
| 47 |
Sleep 1s |
| 48 |
Type "d" |
| 49 |
Sleep 2s |
| 50 |
Enter |
| 51 |
|
| 52 |
# Q2: scope (optional, skip) |
| 53 |
Wait+Screen /What is the scope/ |
| 54 |
Sleep 500ms |
| 55 |
Enter |
| 56 |
|
| 57 |
# Q3: subject |
| 58 |
Wait+Screen /imperative summary/ |
| 59 |
Sleep 500ms |
| 60 |
Type "demo with custom keys" |
| 61 |
Sleep 500ms |
| 62 |
Enter |
| 63 |
|
| 64 |
# Q4: body (optional, skip) |
| 65 |
Wait+Screen /additional contextual information/ |
| 66 |
Sleep 500ms |
| 67 |
Enter |
| 68 |
|
| 69 |
# Q5: is_breaking_change (No) |
| 70 |
Wait+Screen /BREAKING CHANGE\?/ |
| 71 |
Sleep 500ms |
| 72 |
Enter |
| 73 |
|
| 74 |
# Q6: footer (optional, skip) |
| 75 |
Wait+Screen /Footer\. Information/ |
| 76 |
Sleep 500ms |
| 77 |
Enter |
| 78 |
|
| 79 |
# Wait for commit success message |
| 80 |
Sleep 2s |
| 81 |
|
| 82 |
Source shared/cleanup.tape |