def setup_pre10(self, app):
    'Setup Flask pre-1.0 application object.'
    if hasattr(app, 'cli'):
        return
    from flask_cli.app import make_shell_context, shell_context_processor
    app.cli = AppGroup(app.name)
    app.shell_context_processors = []
    app.make_shell_context = types.MethodType(make_shell_context, app)
    app.shell_context_processor = types.MethodType(shell_context_processor, app)
Setup Flask pre-1.0 application object.
def setup_pre10(self, app):
    
    if hasattr(app, 'cli'):
        return
    from flask_cli.app import make_shell_context, shell_context_processor
    app.cli = AppGroup(app.name)
    app.shell_context_processors = []
    app.make_shell_context = types.MethodType(make_shell_context, app)
    app.shell_context_processor = types.MethodType(shell_context_processor, app)