paduszyk / django-management-commands

👨🏻‍💻 Modular discovery, aliasing, and sequencing of Django management commands ⚡️
MIT License
4 stars 1 forks source link

Show commands from `MANAGEMENT_COMMANDS_MODULES` in help #10

Open mikicz opened 1 month ago

mikicz commented 1 month ago

Description

Currently, help only shows custom commands when specified through MANAGEMENT_COMMANDS_PATHS and MANAGEMENT_COMMANDS_ALIASES. However if MANAGEMENT_COMMANDS_MODULES is configured (and looking at source code MANAGEMENT_COMMANDS_SUBMODULES), and there's commands there they do not show in the help when running manage.py --help

Suggested Solution

Like ManagementUtility.main_help_text needs to be updated to get all commands in the specified modules/submodules so they can be printed.

Terms

paduszyk commented 1 month ago

First of all, thanks for your interest in my project! 👍🏻

I like the idea. I will try to open PR ASAP unless you're going to do so. Let me know.

mikicz commented 1 month ago

I think you can probably get it out lot quicker than me!