#sub #subdirectory #simultaneously #command #manage #sockets #management

app subs

Run a command simultaneously in every subdirectory, and manage with a socket

8 releases

0.2.0 Oct 4, 2019
0.1.6 Aug 19, 2019

#4 in #simultaneously

GPL-3.0+

15KB
335 lines

subs

Run a command simultaneously in every subdirectory, with optional process management.

Usage: target/debug/subs [options] PROGRAM [root_dir]

Options:
    -t, --type TYPE     set the management type [choices: watch, socket, none]
                        [default: none]
    -s, --socket NAME   set the socket path. sending the socket a message like
                        "restart xxx" will restart the process running in the
                        directory "xxx". [default: ./subsocket]
    -i, --watch-ignore PATTERN
                        pattern to ignore when watching (matches whole path)
    -h, --help          get help

PROGRAM will be run in parallel in every subdirectory (SUB), as SUB's owner.
A placeholder "{}" is available to PROGRAM, it will be replaced with SUB.

keep your subs happy

Dependencies

~3–11MB
~98K SLoC