Skip to content

Add dynamic commands registering#49

Open
TheLukaszNs wants to merge 3 commits intoleopardslab:masterfrom
TheLukaszNs:feat/dyn-commands-reg
Open

Add dynamic commands registering#49
TheLukaszNs wants to merge 3 commits intoleopardslab:masterfrom
TheLukaszNs:feat/dyn-commands-reg

Conversation

@TheLukaszNs
Copy link

Fast Summary

This PR adds the ability to register commander commands dynamically using the NodeJS fs method called readdir. How does it work? It's simple - we are reading the cli-commands directory and then by looping through the directories we are requiring commands and then pushing it to the array of available commands. All the rest of the bin code stays the same.

* Update docs

* Remove redundant require of express library

* Remove redundant require of express library
* Update docs

* Remove redundant require of express library

* Remove redundant require of express library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants