#directory #down #check #again #recently #fails #modified

app calmdown

Fails if the directory is modified too recently

1 stable release

1.0.0 Jan 11, 2020

#13 in #again

Unlicense OR MIT

7KB
58 lines

Calmdown

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?

Usage

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

Installation

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

Dependencies

~6–15MB
~180K SLoC