feat(cli): 部分完成 nyahome init 和 check 命令
This commit is contained in:
+10
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user