feat(cli): 部分完成 nyahome init 和 check 命令

This commit is contained in:
2026-06-03 23:02:59 +08:00
parent 2b30f0ffe3
commit ee81ccefc5
7 changed files with 427 additions and 142 deletions
+10 -1
View File
@@ -4,4 +4,13 @@ from rich.console import Console
console = Console()
ENV_PATH = Path.cwd() / ".nyahome" / ".env"
DATA_DIR = Path.cwd() / ".nyahome"
ENV_PATH = DATA_DIR / ".env"
LOGGING_YAML = DATA_DIR / "logging.yaml"
db_driver_available = {
"sqlite": ["sqlite3"],
"mysql": ["pymysql"],
"postgresql": ["psycopg"],
}
db_type_allowlist = ["sqlite", "mysql", "postgresql"]