Skip to content
Myr

AppGroups produce more AppGroups

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 9641f07 · Browse files · 1 file+8 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−0 removed

  • other:+8 added−0 removed

1 file+8 added−0 removed

modified:flask/cli.py+8 added
224 unmodified lines
225 f = with_appcontext(f)226 return click.Group.command(self, *args, **kwargs)(f)227 return decorator228229 def group(self, *args, **kwargs):230 """This works exactly like the method of the same name on a regular231 :class:`click.Group` but it defaults the group class to232 :class:`AppGroup`.233 """234 kwargs.setdefault('cls', AppGroup)235 return click.Group.group(self, *args, **kwargs)236237238class FlaskGroup(AppGroup):239 """Special subclass of the the :class:`AppGroup` group that supports240 loading more commands from the configured Flask app. Normally a241 developer does not have to interface with this class but there are
230 unmodified lines