@@ -12,31 +12,36 @@ Set WindowBar Colorful
1212Type "# Welcome to the demo for cfme (Commit For Me)! 🐦 "
1313Sleep 500ms
1414Enter 2
15+
1516Type "# Add some changes, then stage them:"
1617Sleep 500ms
1718Enter 2
19+
1820Type "echo 'Example changes for demo' > my-changes.example"
1921Sleep 500ms
2022Enter
23+
2124Type "git add my-changes.example"
2225Sleep 500ms
2326Enter 2
24- Type "# Run cfme to generate commit message candidates"
25- Sleep 50ms
26- Enter
27- Type "# pick from the candidates,"
27+
28+ Type "# cfme will generate a few commit message candidates based on the changes we made,"
2829Sleep 50ms
2930Enter
30- Type "# and then review/edit the chosen message,"
31+
32+ Type "# we can then pick one of the candidates,"
3133Sleep 50ms
3234Enter
33- Type "# before finally committing the changes."
35+
36+ Type "# edit or accept one message, and then commit."
3437Sleep 50ms
3538Enter 2
36- Sleep 500ms
39+
3740Type "cfme"
3841Sleep 750ms
3942Enter
43+
44+ # Wait for the screen, then add review changes and save the commit
4045Wait@30000ms /Select commit/
4146Sleep 1500ms
4247Up 1
@@ -50,66 +55,104 @@ Ctrl+C
5055Sleep 3000ms
5156Type ":wq"
5257Enter
53- Sleep 500ms
54- Type "# We have committed the changes with the chosen message!"
58+
5559Sleep 1000ms
5660Enter 2
57- Type "# Cool! Now let's look at some additional options:"
61+
62+ Type "# Cool! But we can do more:"
5863Sleep 500ms
5964Enter 2
60- Type "# Supply additional instructions on generating the messages:"
65+
66+ Type "# We can run cfme with custom prompts."
67+ Sleep 500ms
68+ Enter
69+
70+ Type "# For example, let's say your team always writes commit messages in pirate speak."
71+ Sleep 50ms
72+ Enter
73+
74+ Type "# You can create a custom prompt for that! Let's take a look at the pirate prompt:"
6175Sleep 500ms
6276Enter 2
63- Type "git reset --soft HEAD~1 # Undo last commit so we can run the demo again"
77+
78+ Type "cat pirate-prompt.md"
6479Sleep 500ms
80+ Enter
81+
82+ Sleep 5000ms
6583Enter 2
66- Type "cfme \"
67- Sleep 50ms
68- Enter
69- Type "--instructions 'These are not real changes, the header should be in ALL CAPS.' \"
70- Sleep 50ms
84+
85+ Type "# We chose to slot in our 'PIRATE_EXPRESSIONS' with a string from a YAML file:"
86+ Sleep 500ms
87+ Enter 2
88+
89+ Type "cat pirate-vars.yaml"
90+ Sleep 500ms
7191Enter
72- Type "--response \"
92+
93+ Sleep 5000ms
94+ Enter 2
95+
96+ Type "# Now let's run cfme with our custom pirate prompt!"
97+ Enter 2
98+
99+ # Run cfme with the custom prompt and variables, wait for the screen
100+ Type "git reset --soft HEAD~1 # We undo the last commit so we can run the demo again"
101+ Sleep 500ms
102+ Enter 2
103+ Type "# -p will specify the prompt file, -v the variables file"
73104Sleep 50ms
74105Enter
75- Type "-- silent \ "
106+ Type "# -r will print the AI response directly, -s will run in silent mode "
76107Sleep 50ms
77- Enter
78- Type "# -r prints the response only (useful for piping), -s suppresses debug output "
108+ Enter 2
109+ Type "cfme -p pirate-prompt.md -v pirate-vars.yaml -rs "
79110Sleep 750ms
80111Enter
81112Wait+Screen@30000ms /commitMessages/
113+
82114Sleep 3000ms
83115Enter
84- Type "# You get the idea! Here are some more options, we won't run them now:"
116+
117+ Type "# You get the idea now! Here are some more options"
85118Sleep 750ms
86119Enter 2
87- Type "# Supplying a custom prompt and prompt variables file:"
120+
121+ Type "# Supply instructions to help the AI process your changes:"
88122Sleep 250ms
89123Enter
90- Type "# cfme -p my-prompt.md -v my-variables.yaml"
124+
125+ Type "# cfme -i 'This commit changes xyz for abc reason'"
91126Sleep 250ms
92127Enter 2
128+
93129Type "# Print the parsed prompt only (useful for debugging):"
94130Sleep 250ms
95131Enter
132+
96133Type "# cfme --print-parsed-prompt"
97134Sleep 250ms
98135Enter 2
99- Type "# Printing the reviewed message instead of committing:"
136+
137+ Type "# Printing the reviewed message (useful for piping to other tools):"
100138Sleep 250ms
101139Enter
102- Type "# cfme --message (useful for piping to other tools)"
140+
141+ Type "# cfme -m"
103142Sleep 250ms
104143Enter 2
105- Type "# Remember, you can easily customize cfme to use prompts that fit our own workflow!"
144+
145+ Type "# Remember, it is really easy to customize cfme to use prompts that fit your workflow!"
106146Sleep 50ms
107147Enter
108- Type "# Be sure to check out the documentation for more details."
148+
149+ Type "# Be sure to check out the documentation for more information."
109150Sleep 750ms
110151Enter 2
152+
111153Type "# Now, go download cfme, and thanks for watching!"
112154Sleep 500ms
113155Enter
156+
114157Type "# - codevogel 🐦 (codevogel.com)"
115158Sleep 3000ms
0 commit comments