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 immediate subdirectories of the current directory, changes into each one, and runs the given command with the
working directory set to that subdirectory.
# Run tests in every subproject
masscom "npm test"
# Check git status everywhere
masscom "git status"| Option | Description |
|---|---|
-h, --help |
Display the help message |
- Only immediate subdirectories are visited, the walk is not recursive. (for now...)
- 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.