36 lines
757 B
Python
36 lines
757 B
Python
from typing import Optional, TypedDict
|
|
|
|
|
|
class ArchMgrPkgConfig(TypedDict):
|
|
individual: list[str]
|
|
bundles: list[ArchMgrBundleConfig]
|
|
repos: ArchMgrRepoSettings
|
|
|
|
|
|
class ArchMgrReposConfig(TypedDict):
|
|
enabled_repos: list[ArchMgrRepoSettings]
|
|
reflector: ArchMgrReflectorConfig
|
|
|
|
|
|
class ArchMgrReflectorConfig(TypedDict):
|
|
enabled: bool
|
|
interval: Optional[int]
|
|
countries: Optional[list[str]]
|
|
count: Optional[int]
|
|
|
|
|
|
class ArchMgrBundleConfig(TypedDict):
|
|
name: str
|
|
ignored_pkgs: Optional[list[str]]
|
|
|
|
|
|
class ArchMgrRepoSettings(TypedDict):
|
|
name: str
|
|
setup_cmds: Optional[list[str]]
|
|
mirrors: ArchMgrRepoMirrors
|
|
|
|
|
|
class ArchMgrRepoMirrors(TypedDict):
|
|
use_default: bool
|
|
extra_mirrors: Optional[list[str]]
|