Run a shell command in every immediate subdirectory of the current directory.
The best way to use this package is by installing it globally
npm install -g masscommasscom [OPTION]... [COMMAND]masscom loops over the subdirectories of the current directory, changes into each one, and runs the given command with the working
directory set to that subdirectory. By default only immediate subdirectories are visited; use --level to recurse deeper.
# Run tests in every subproject
masscom "npm test"
# Check git status everywhere
masscom "git status"| Option | Description |
|---|---|
-h, --help |
Display the help message |
-l, --level |
Run the command up to this many levels deep (default: 1) |
- With
--level(or-l), the walk recurses up to that many levels deep into every subdirectory tree. - The command is executed once per directory via a shell, with the subdirectory as the working directory.
- Non-directory entries and the current directory itself are skipped.
Released under the MIT License.