https://github.com/zaphar/runwhen
A command line utility that executes a command on user defined triggers.
https://github.com/zaphar/runwhen
Last synced: about 1 year ago
JSON representation
A command line utility that executes a command on user defined triggers.
- Host: GitHub
- URL: https://github.com/zaphar/runwhen
- Owner: zaphar
- License: apache-2.0
- Created: 2017-01-29T22:27:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-09-26T00:03:36.000Z (almost 3 years ago)
- Last Synced: 2024-10-31T12:02:12.083Z (over 1 year ago)
- Language: Rust
- Size: 75.2 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# runwhen - A utility that executes commands on user defined triggers.
## Usage
```
Runs a command on user defined triggers.
USAGE:
runwhen [OPTIONS] --cmd [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-c, --cmd Command to run on supplied triggers
-e, --env ... Command to run on supplied triggers
SUBCOMMANDS:
help Prints this message or the help of the given subcommand(s)
success Trigger that fires if a command runs successful.
timer Trigger that fires on a timer.
watch Trigger that fires when a file or directory changes.
```
## Description
I wanted a project to learn Rust on and this one scratches an itch I've had for
a while. runwhen executes a command on a user specified trigger. There are other
utilities out there that will execute on a timer or when a file changes but I
haven't seen any that bundled all the types of triggers into one utility.