Extending a Rust cli tool using Junie
Implementing a new command to cforge
Iteration 1
ExcellentPrompt
Implement clear command by accomplishing the next tasks:
- Create a new file and implement it according to the other commands
- Create and verify a tests for clear command
- Add the command to the commands.rs
Desing a plan following these steps and present it to me before continuing
Result
Actually one shot the task. Just required minor cleanup (and no plan was ever presented).Iteration 2
OkayPrompt
Write documentation for theclear command to the commands.md file and add clear command to the changelog.md file. Increment the minor version
Result
Documentation wasn’t great and required manual tweaking. Way too much unnecessary text.Conclusion
Really simple change, but it still nailed it.