Add Blueprint level cli command registration
Implements #1357. Adds ability to register click cli commands onto blueprint.
This commit is contained in:
parent
855d59b68b
commit
ec1ccd7530
6 changed files with 136 additions and 8 deletions
|
|
@ -56,6 +56,9 @@ Unreleased
|
|||
returning a string will produce a ``text/html`` response, returning
|
||||
a dict will call ``jsonify`` to produce a ``application/json``
|
||||
response. :pr:`3111`
|
||||
- Blueprints have a ``cli`` Click group like ``app.cli``. CLI commands
|
||||
registered with a blueprint will be available as a group under the
|
||||
``flask`` command. :issue:`1357`.
|
||||
|
||||
.. _#2935: https://github.com/pallets/flask/issues/2935
|
||||
.. _#2957: https://github.com/pallets/flask/issues/2957
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue