| Crates.io | calmdown |
| lib.rs | calmdown |
| version | 1.0.0 |
| created_at | 2020-01-11 15:18:24.126931+00 |
| updated_at | 2020-01-11 15:18:24.126931+00 |
| description | Fails if the directory is modified too recently |
| homepage | |
| repository | https://github.com/HyeonuPark/calmdown |
| max_upload_size | |
| id | 197511 |
| size | 25,306 |
Calm down and check the code again
This tiny utility does the single job well: it fails if the files under the directory modified too recently.
Initial motivation is to use it within a git hook, to prevent to push hastly. But who knows its limitation?
To fail within 10 minutes after modification:
$ calmdown -m 10
Apply to multiple directories:
$ calmdown -h 1 ./foo ./bar
Or just check the last modification time without failing:
$ calmdown
Currently you need the Rust language toolchain to install calmdown. If you want to install calmdown without it, please file an issue on the github.
$ cargo install calmdown