guide
guide copied to clipboard
Modifying example to search command subfolders
This portion of the guide is confusing because it does not work with a previous section title "Command Categories" which has the user move commands in to subcommand folders.
The changes I've made allow for the full commands folder to be searched for a matching command. This will work no matter the path to the file inside the command folder.
This would require users to download the glob package using npm. As this is not stated on the page, I would recommend adding a part for installing the package.
Good point. Added a line about installing glob.
Wait, you're making this change to reflect the command categories page, right? So why should we use a different approach than that page? I'd say either use fs
here, or also make the categories page use glob
.
I don't think changes like these are needed especially when the new guide is in the works.
This portion of the guide is confusing because it does not work with a previous section title "Command Categories" which has the user move commands in to subcommand folders.
Just pointing out that this issue is resolved.