#command-runner #events #ignore #trigger #debounce #file

app seedo

A command runner triggered by filesystem events

4 releases

0.1.3 Aug 10, 2022
0.1.2 Aug 8, 2022
0.1.1 Aug 8, 2022
0.1.0 Aug 8, 2022

#1350 in Filesystem

Download history 1/week @ 2024-02-21 3/week @ 2024-02-28 46/week @ 2024-03-06 15/week @ 2024-03-13

65 downloads per month

Unlicense

10KB
151 lines

seedo

seedo (short for "Monkey See, Monkey Do") is a simple program for recursively watching a directory for file system events and running a command when they occur. It will debounce filesystem events based a configurable time parameter. It respects .gitignore files using the ignore crate.

A basic example to use with cargo check would be

seedo cargo check

This will run cargo check within 50ms of a file system change within the current directory (recursively). It will not trigger cargo check if a file is listed in a .gitignore file.

The current command line options are as follows

$ seedo --help
seedo

USAGE:
    seedo [OPTIONS] <COMMAND> [ARGS]...

ARGS:
    <COMMAND>    Command to run
    <ARGS>...    Args for command

OPTIONS:
    -d, --debounce <DEBOUNCE_MS>    Debounce time in milliseconds [default: 50]
    -h, --help                      Print help information
    -p, --path <PATH>               Paths to watch [default: .]
        --skip-ignore-files         Don't read .gitignore files

Dependencies

~0–11MB
~83K SLoC