| Crates.io | depon |
| lib.rs | depon |
| version | 0.1.1 |
| created_at | 2022-12-16 22:09:05.058905+00 |
| updated_at | 2022-12-16 22:18:37.470271+00 |
| description | Execute subsequent command only if given dependencies changed |
| homepage | https://github.com/peetzweg/depon |
| repository | https://github.com/peetzweg/depon |
| max_upload_size | |
| id | 739496 |
| size | 19,083 |
depon - "depends on"Prevent execution of a subsequent command on the cli if the given dependency did not change.
Usage: depon [OBSERVE]...
Arguments:
[OBSERVE]...
Options:
-h, --help Print help information
> depon ./tasks.json && ./upload.sh ./tasks.json
The ./upload.sh ./task.json part of this invocation will be executed if depon detects, that ./task.json has been modified. If it does not have been modified, depon will prevent further execution.
cargo install depon
If depon detects a change in given dependencies or the dependencies have been touched, depon will exit with an error exit code, thereby preventing further execution of linked commands with the && shell operator.
Depon keeps track of the dependencies between calls persistently in a ./depon.lock file.