mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-07-07 07:31:50 +08:00
fix: 注册命令
This commit is contained in:
3
entry.py
3
entry.py
@@ -4,7 +4,7 @@ import sys
|
|||||||
import uvloop
|
import uvloop
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
from commands import recheck, upper_thumb
|
from commands import recheck, refresh_tags, upper_thumb
|
||||||
from models import init_model
|
from models import init_model
|
||||||
from processor import cleanup, process
|
from processor import cleanup, process
|
||||||
from settings import settings
|
from settings import settings
|
||||||
@@ -18,6 +18,7 @@ async def entry() -> None:
|
|||||||
("once", process),
|
("once", process),
|
||||||
("recheck", recheck),
|
("recheck", recheck),
|
||||||
("upper_thumb", upper_thumb),
|
("upper_thumb", upper_thumb),
|
||||||
|
("refresh_tags", refresh_tags),
|
||||||
]:
|
]:
|
||||||
if any(command in _ for _ in sys.argv):
|
if any(command in _ for _ in sys.argv):
|
||||||
logger.info("Running {}...", command)
|
logger.info("Running {}...", command)
|
||||||
|
|||||||
Reference in New Issue
Block a user