feat(typing): possibly complete
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
from typing import TypedDict
|
||||
|
||||
from config.dtype.others import ArchMgrUserConfig
|
||||
from config.dtype.cmds import ArchMgrCmdsConfig
|
||||
from config.dtype.git import ArchMgrGitConfig
|
||||
from config.dtype.others import ArchMgrBootConfig, ArchMgrSymlinkConfig, ArchMgrTemplateData, ArchMgrThemeConfig, ArchMgrUserConfig
|
||||
from config.dtype.pkgs import ArchMgrPkgConfig
|
||||
|
||||
|
||||
class ArchMgrConfig(TypedDict):
|
||||
pkgs: ArchMgrPkgConfig
|
||||
users: list[ArchMgrUserConfig]
|
||||
boot: ArchMgrBootConfig
|
||||
themes: ArchMgrThemeConfig
|
||||
git: ArchMgrGitConfig
|
||||
template_data: list[ArchMgrTemplateData]
|
||||
symlinks: list[ArchMgrSymlinkConfig]
|
||||
cmds: ArchMgrCmdsConfig
|
||||
|
||||
@@ -2,8 +2,8 @@ from typing import Optional, TypedDict
|
||||
|
||||
|
||||
class ArchMgrCmdsConfig(TypedDict):
|
||||
always: ArchMgrCommand
|
||||
once: ArchMgrCommand
|
||||
always: list[ArchMgrCommand]
|
||||
once: list[ArchMgrCommand]
|
||||
|
||||
|
||||
class ArchMgrCommand(TypedDict):
|
||||
|
||||
+6
-2
@@ -2,8 +2,12 @@ from typing import TypedDict
|
||||
|
||||
|
||||
class ArchMgrGitConfig(TypedDict):
|
||||
creds: dict # TODO:
|
||||
repos: dict # TODO
|
||||
creds: ArchMgrGitCredsConfig
|
||||
repos: list[ArchMgrGitRepoConfig]
|
||||
|
||||
|
||||
class ArchMgrGitCredsConfig(TypedDict):
|
||||
manager: str
|
||||
|
||||
|
||||
class ArchMgrGitRepoConfig(TypedDict):
|
||||
|
||||
@@ -5,9 +5,11 @@ class ArchMgrUserConfig(TypedDict):
|
||||
username: str
|
||||
groups: list[str]
|
||||
home_dir: bool
|
||||
sudo_user: bool
|
||||
|
||||
|
||||
class ArchMgrBootConfig(TypedDict):
|
||||
managed: bool
|
||||
bootloader: str
|
||||
esp_dir: str
|
||||
theme_folder: str
|
||||
@@ -20,3 +22,13 @@ class ArchMgrThemeConfig(TypedDict):
|
||||
font: str
|
||||
icon_theme: str
|
||||
cursor_theme: str
|
||||
|
||||
|
||||
class ArchMgrTemplateData(TypedDict):
|
||||
name: str
|
||||
data: str
|
||||
|
||||
|
||||
class ArchMgrSymlinkConfig(TypedDict):
|
||||
destination: str
|
||||
location: str
|
||||
|
||||
@@ -3,8 +3,8 @@ from typing import Optional, TypedDict
|
||||
|
||||
class ArchMgrPkgConfig(TypedDict):
|
||||
individual: list[str]
|
||||
repos: ArchMgrReposConfig
|
||||
bundles: list[ArchMgrBundleConfig]
|
||||
repos: ArchMgrRepoSettings
|
||||
|
||||
|
||||
class ArchMgrReposConfig(TypedDict):
|
||||
|
||||
Reference in New Issue
Block a user