# Copyright 2024 Caleb Connolly # SPDX-License-Identifier: GPL-3.0-or-later """Global runtime context""" from typing import Optional import pmb.config from pathlib import Path class Context(): details_to_stdout: bool quiet: bool command_timeout: float sudo_timer: bool log: Path # The architecture of the selected device device_arch: Optional[str] def __init__(self): self.details_to_stdout = False self.command_timeout = 0 self.sudo_timer = False self.log = pmb.config.work / "log.txt" self.quiet = False self.device_arch = None