class documentation

class AppGroup(click.Group):

Known subclasses: flask.cli.FlaskGroup

View In Hierarchy

This works similar to a regular click ~click.Group but it changes the behavior of the command decorator so that it automatically wraps the functions in with_appcontext.

Not to be confused with FlaskGroup.

Method command This works exactly like the method of the same name on a regular click.Group but it wraps callbacks in with_appcontext unless it's disabled by passing with_appcontext=False.
Method group This works exactly like the method of the same name on a regular click.Group but it defaults the group class to AppGroup.
def command(self, *args, **kwargs):
This works exactly like the method of the same name on a regular click.Group but it wraps callbacks in with_appcontext unless it's disabled by passing with_appcontext=False.
def group(self, *args, **kwargs):
This works exactly like the method of the same name on a regular click.Group but it defaults the group class to AppGroup.