-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
The cli commands returned by the function MARA_CLICK_COMMANDS are automatically added to the Mara Flask App (code see here).
There is a default way in Flask to add extra commands from a module by using a entry_point in the module package with name flask.commands: [...]. See here. This functionality is already available since 1.0.0 (pallets/flask#2259)
I suggest to deprecate the current pattern of using the MARA_CLICK_COMMANDS function in advance to the flask standard way of dealing with this.
In addition, I suggest to redesign the command names / and keep the old names only for upgrade compatibility. The command flask mara_pipelines.ui.run could be e.g. changed into <my_mara_app> pipeline run by using a click group.
Reactions are currently unavailable