v0.5.4 : Read changelog
A little solution wiper. Search code scopes containing a matching comment and wipe the content of the scope.
Goal : Remove solution from code exercises to allow students to complete them.
Sw is a simple tool that searches some specified comments in a codebase. Then, he removes the content of the surrounding scope.
SW uses :
- fd to select the code files we want to search for solutions to wipe.
- Remove the code betwwen lines containing à
--sw-wipe--keyword inclusive.
- SW only looks in the src folder
- respects the .ignore and .gitignore files as fd does.
- Search for these languages (by file extension) :
- Rust :
.rs(also add thetodo!()macro to allow compilation) - PHP :
.php - JavaScript :
.js - TypeScript :
.ts - Java :
.java
- Rust :
- Wipe the characters between lines containing
--sw-wipe--.
See sw --help