Feat: activate cli
This commit is contained in:
parent
2d08671247
commit
921292a0d2
@ -4,7 +4,6 @@
|
|||||||
import click
|
import click
|
||||||
from recopytex.dashboard.app import app as dash
|
from recopytex.dashboard.app import app as dash
|
||||||
|
|
||||||
|
|
||||||
@click.group()
|
@click.group()
|
||||||
def cli():
|
def cli():
|
||||||
pass
|
pass
|
||||||
@ -14,3 +13,6 @@ def cli():
|
|||||||
@click.option("--debug", default=0, help="Debug mode for dash")
|
@click.option("--debug", default=0, help="Debug mode for dash")
|
||||||
def dashboard(debug):
|
def dashboard(debug):
|
||||||
dash.run_server(debug=bool(debug))
|
dash.run_server(debug=bool(debug))
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
cli()
|
||||||
|
Loading…
Reference in New Issue
Block a user