A CLI utility that runs a shell command based on another command's output.
Keep in mind it keeps the output from the command you're checking against as well as any commands that it runs on success or error.
Also keep in mind this only works on linux :)
From caracall -h
:
```
Usage: caracall [OPTIONS]
Arguments:
Options:
-e
Install cargo, and run cargo install caracall
.
Make sure the cargo binary path is also in your PATH.
A basic showcase of functionality:
```bash
caracall "grep 'kitty' example.txt" \ -s "echo 'found the file!'" \ -e "echo 'didn't find the file!'" \ -l "kitty" -f "echo 'found a kitty :3'" ```
Or a more practical example (this is what I made caracall for):
```bash
caracall "snapraid sync" \ -e "curl -d 'snapraid sync failed!' ntfy.sh/example" ```