Fix
This commit is contained in:
@ -34,6 +34,11 @@ def create_app():
|
||||
spec.loader.exec_module(mod)
|
||||
if hasattr(mod, 'bp'):
|
||||
app.register_blueprint(mod.bp)
|
||||
|
||||
# Register CLI commands if the plugin has any
|
||||
if hasattr(mod, 'cli_commands'):
|
||||
for command in mod.cli_commands:
|
||||
app.cli.add_command(command)
|
||||
|
||||
return app
|
||||
|
||||
|
Reference in New Issue
Block a user