Create a new filesystem loader
Path to the directory containing command files
Optionalfilter: (filePath: string) => booleanOptional filter function to exclude certain files
Returns the metadata of all commands in the directory
Returns the command class constructor for a given command. Null is returned when unable to lookup the command
The command metadata to find
Fs loader exposes the API to load commands from a directory. All files ending with ".js", ".cjs", ".mjs", ".ts" and ".mts" are considered as commands
Example