use app context aware cli, fixes #65
This commit is contained in:
parent
8a7ef6bc90
commit
bd41eaac4e
4 changed files with 51 additions and 7 deletions
|
@ -2,9 +2,9 @@ import click
|
|||
from realms.lib.util import random_string
|
||||
from realms.modules.auth.models import User
|
||||
from realms.lib.util import green, red, yellow
|
||||
from realms import flask_cli
|
||||
|
||||
|
||||
@click.group(short_help="Auth Module")
|
||||
@flask_cli.group(short_help="Auth Module")
|
||||
def cli():
|
||||
pass
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import click
|
||||
from realms import create_app, search
|
||||
from realms import create_app, search, flask_cli
|
||||
from realms.modules.wiki.models import Wiki
|
||||
from realms.lib.util import filename_to_cname
|
||||
|
||||
|
||||
@click.group(short_help="Search Module")
|
||||
@flask_cli.group(short_help="Search Module")
|
||||
def cli():
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue