(self)
| 220 | } |
| 221 | |
| 222 | def sub_cfg(self) -> dict[ArchConfigType, SubConfig]: |
| 223 | cfg: dict[ArchConfigType, SubConfig] = { |
| 224 | ArchConfigType.PACMAN_CONFIG: self.pacman_config, |
| 225 | } |
| 226 | |
| 227 | if self.mirror_config: |
| 228 | cfg[ArchConfigType.MIRROR_CONFIG] = self.mirror_config |
| 229 | |
| 230 | if self.bootloader_config: |
| 231 | cfg[ArchConfigType.BOOTLOADER_CONFIG] = self.bootloader_config |
| 232 | |
| 233 | if self.disk_config: |
| 234 | cfg[ArchConfigType.DISK_CONFIG] = self.disk_config |
| 235 | |
| 236 | if self.swap: |
| 237 | cfg[ArchConfigType.SWAP] = self.swap |
| 238 | |
| 239 | if self.auth_config: |
| 240 | cfg[ArchConfigType.AUTH_CONFIG] = self.auth_config |
| 241 | |
| 242 | if self.locale_config: |
| 243 | cfg[ArchConfigType.LOCALE_CONFIG] = self.locale_config |
| 244 | |
| 245 | if self.profile_config: |
| 246 | cfg[ArchConfigType.PROFILE_CONFIG] = self.profile_config |
| 247 | |
| 248 | if self.network_config: |
| 249 | cfg[ArchConfigType.NETWORK_CONFIG] = self.network_config |
| 250 | |
| 251 | if self.app_config: |
| 252 | cfg[ArchConfigType.APP_CONFIG] = self.app_config |
| 253 | |
| 254 | return cfg |
| 255 | |
| 256 | @classmethod |
| 257 | def from_config(cls, args_config: dict[str, Any], args: Arguments) -> Self: |
no outgoing calls
no test coverage detected