The types of files to look for when requiring command modules.
Whitelist certain modules
Look for command modules in all subdirectories and apply them as a flattened (non-hierarchical) list.
A synchronous function called for each command module encountered.
Accepts commandObject
, pathToFile
, and filename
as arguments.
Returns commandObject
to include the command; any falsy value to exclude/skip it.
Blacklist certain modules.