We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1720dd1 commit 6ece12dCopy full SHA for 6ece12d
1 file changed
src/copia/cli/config/globals.py
@@ -1,5 +1,5 @@
1
"""All the CONSTANTS shared by the copia config module"""
2
-from typing import Literal, TypeAlias
+from typing import Literal, TypeAlias, get_args
3
from pathlib import Path
4
5
from typer import get_app_dir
@@ -8,9 +8,10 @@
8
APP_NAME = "copia"
9
APP_DIR = get_app_dir(APP_NAME)
10
LOCAL_COPIA_FILE = Path(".copia.toml")
11
-GLOBAL_COPIA_FILE = Path(APP_DIR) / "profiles.toml"
+GLOBAL_COPIA_FILE = Path(APP_DIR) / "config.toml"
12
PORT_MIN_VAL = 1
13
PORT_MAX_VAL = 65535
14
-Adapter: TypeAlias = Literal['mysql', 'postgres']
+Adapter: TypeAlias = Literal['mysql', 'postgres', 'sqlite']
15
+Adapters: list[str] = list(get_args(Adapter))
16
ConfigScope: TypeAlias = Literal["local", "global"]
17
0 commit comments