depon

Crates.iodepon
lib.rsdepon
version0.1.1
sourcesrc
created_at2022-12-16 22:09:05.058905
updated_at2022-12-16 22:18:37.470271
descriptionExecute subsequent command only if given dependencies changed
homepagehttps://github.com/peetzweg/depon
repositoryhttps://github.com/peetzweg/depon
max_upload_size
id739496
size19,083
peetzweg/ (peetzweg)

documentation

README

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

Usage

> 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.

Install

cargo install depon

How does it Work?

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.

Commit count: 9

cargo fmt