A command watcher that commits when you fix errors
Feel free to poke around the code, I would love feature suggestions!
Usage: savepoint [OPTIONS] --filetype <filetype> [COMMAND]...
Arguments:
[COMMAND]... Command to run (use after -- if your shell requires it)
Options:
-f, --filetype <filetype> Filename extension to watch (eg rs, js, py, java)
-d, --dryrun Don't run git commit when tests pass
-c, --clear Clear screen between executions
-q, --quiet Don't display test output
-h, --help Print help
-V, --version Print version🏁 SAVEPOINT: Running command...
Compiling savepoint v0.1.4 (/home/oatman/projects/savepoint)
error: expected one of `!` or `::`, found `SavePoint`
--> src/main.rs:37:10
|
37 | uhoh! impl SavePoint<Passing> {
| ^^^^^^^^^ expected one of `!` or `::`
error: could not compile `savepoint` (bin "savepoint") due to 1 previous error
🏁 SAVEPOINT: Error!
🏁 SAVEPOINT: Monitoring..🏁 SAVEPOINT: Running command...
Compiling savepoint v0.1.4 (/home/oatman/projects/savepoint)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.18s
🏁 SAVEPOINT: Autosaving!
[main 3d65083] SAVEPOINT REACHED!
2 files changed, 16 insertions(+), 1 deletion(-)
🏁 SAVEPOINT: Monitoring..flowchart LR
PASSING-->|fail|FAILING
FAILING-->|pass; git commit|PASSING
Other transitions are no-ops (such as tests passing while in passing state)