-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
520886b
commit 8137afb
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import click | ||
from eit_dash.app import app | ||
|
||
|
||
@click.group(invoke_without_command=True) | ||
@click.pass_context | ||
def cli(ctx): | ||
"""Default prompt. It shows the help command""" | ||
if ctx.invoked_subcommand is None: | ||
click.echo(ctx.get_help()) | ||
|
||
|
||
@cli.command(name="run", help="Start the dashboard.") | ||
def run(): | ||
"""Start the dashboard.""" | ||
|
||
app.run_server(debug=False) | ||
|
||
|
||
if __name__ == "__main__": | ||
cli() |