flask-script icon indicating copy to clipboard operation
flask-script copied to clipboard

Flask extension to help writing external scripts for Flask applications

Results 33 flask-script issues
Sort by recently updated
recently updated
newest added

Adding cov as a command that does test coverage, usually shows function/class headers as missing. This actually make sense because, in manage.py we import the app first then define our...

it was hard for me to understand the logic in this method. i have tried to amend it to make the sub-manager task use its app rather than the parent's....

Hi, I've just find out `@command` and `@option` decorators are incompatile. For the story, until now I was creating my commands like that: ``` python @broker_manager.command @broker_manager.option('queue', help='Queue to monitor')...

Can you show at least one example of sub-manager that I can put inside manage.py from outside module?

Because I am managing multiple levels of parameters ( some in shell, some in python, some for underlying system ), I need to pass a parameter like: --params="value1 value2 value3"....

``` #!/usr/bin/env python from flask.ext.script import Manager , Shell, Server from flask_assets import ManageAssets from example import app,assets_env manager = Manager(app) manager.add_command("runserver" , Server()) manager.add_command("shell",Shell()) manager.add_command("assets", ManageAssets(assets_env)) manager.run() ``` I...

If I see it right, argument groups are only possible with custom commands, but sometimes it would be useful to have it on the `Manager` level, too, e.g. when adding...

There's a code snippet in the docs as follows: ``` def create_my_app(config=None): app = Flask(__name__) if config: app.config.from_pyfile(config) return app manager = Manager(create_my_app) manager.add_option("-c", "--config", dest="config", required=False) @manager.command def mycommand(app):...

I'm assuming that because you need manage to be global in order to take advantage of the decorator, you have deliberately allowed Manager to receive either the app instance **or**...