Debian Codegraph @

docs/images/bump.tape

raw
1 Output cli_interactive/bump.gif
2
3 Source shared/base.tape
4 Source shared/git_init.tape
5
6 # Initialize commitizen config with version 0.0.1 and changelog enabled
7 Type `cat > pyproject.toml << 'EOF'`
8 Enter
9 Type `[tool.commitizen]`
10 Enter
11 Type `version = "0.0.1"`
12 Enter
13 Type `update_changelog_on_bump = true`
14 Enter
15 Type "EOF"
16 Enter
17 Sleep 300ms
18
19 # Create initial commit (no tag, so cz bump will ask "Is this the first tag created?")
20 Type "git add pyproject.toml"
21 Enter
22 Sleep 300ms
23
24 Type "git commit -m 'chore: initial commit'"
25 Enter
26 Sleep 500ms
27
28 # Create a feat commit that will trigger a MINOR bump (0.0.1 -> 0.1.0)
29 Type "echo 'new feature' > feature.py"
30 Enter
31 Sleep 300ms
32
33 Type "git add feature.py"
34 Enter
35 Sleep 300ms
36
37 Type "git commit -m 'feat: add awesome new feature'"
38 Enter
39 Sleep 500ms
40
41 # Clear the screen to start fresh
42 Type "clear"
43 Enter
44 Sleep 500ms
45
46 # Show commands from here
47 Show
48
49 # Step 1: Show current version
50 Type "cz version --project"
51 Sleep 500ms
52 Enter
53 Sleep 1s
54
55 # Step 2: Run cz bump (no existing tag, will prompt for first tag)
56 Type "cz bump"
57 Sleep 500ms
58 Enter
59
60 # Wait for the "Is this the first tag created?" prompt to render
61 Wait+Screen /Is this the first tag/
62
63 # Small visual pause so the prompt is readable before the answer
64 Sleep 500ms
65
66 # Answer Yes to "Is this the first tag created?" (default is Yes, just press Enter)
67 Enter
68
69 # Wait for cz bump to finish (the "Done!" success line is printed last)
70 Wait+Screen /Done!/
71
72 # Step 3: Show new version after bump
73 Type "cz version --project"
74 Sleep 500ms
75 Enter
76 Sleep 1s
77
78 # Wait for final output
79 Sleep 1s
80
81 Source shared/cleanup.tape