Skip to content

Commit 6ece12d

Browse files
committed
fix: update GLOBAL_COPIA_FILE path and expand Adapter type to include 'sqlite'
1 parent 1720dd1 commit 6ece12d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/copia/cli/config/globals.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""All the CONSTANTS shared by the copia config module"""
2-
from typing import Literal, TypeAlias
2+
from typing import Literal, TypeAlias, get_args
33
from pathlib import Path
44

55
from typer import get_app_dir
@@ -8,9 +8,10 @@
88
APP_NAME = "copia"
99
APP_DIR = get_app_dir(APP_NAME)
1010
LOCAL_COPIA_FILE = Path(".copia.toml")
11-
GLOBAL_COPIA_FILE = Path(APP_DIR) / "profiles.toml"
11+
GLOBAL_COPIA_FILE = Path(APP_DIR) / "config.toml"
1212
PORT_MIN_VAL = 1
1313
PORT_MAX_VAL = 65535
14-
Adapter: TypeAlias = Literal['mysql', 'postgres']
14+
Adapter: TypeAlias = Literal['mysql', 'postgres', 'sqlite']
15+
Adapters: list[str] = list(get_args(Adapter))
1516
ConfigScope: TypeAlias = Literal["local", "global"]
1617

0 commit comments

Comments
 (0)