mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-23 01:03:31 -07:00
WebHost: add stats show cli command (#5995)
Usage: flask -A "WebHost:get_app()" stats show Currently only shows sum and top10 biggest games packages.
This commit is contained in:
8
WebHostLib/cli/__init__.py
Normal file
8
WebHostLib/cli/__init__.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from flask import Flask
|
||||
|
||||
|
||||
class CLI:
|
||||
def __init__(self, app: Flask) -> None:
|
||||
from .stats import stats_cli
|
||||
|
||||
app.cli.add_command(stats_cli)
|
||||
Reference in New Issue
Block a user