The index generator creates a commands loader that can be lazily imported.
Also, a commands.json index file is created that has metadata for all
the files. Doing so speeds up commands lookup, as we do not
have to import all the classes just to find if a command exists or not.
The index generator creates a commands loader that can be lazily imported.
Also, a commands.json index file is created that has metadata for all the files. Doing so speeds up commands lookup, as we do not have to import all the classes just to find if a command exists or not.
Example