lib.base: Add module
Add lib.base to provide basic definitions.
For now, move the definiions of Result, Input and InputMode from ExecContext into lib.base. Having to import them from the ExecContect module is too heavy-handed for those simple types.
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
04fef1e67a
commit
888c0495ec
17 changed files with 50 additions and 38 deletions
|
|
@ -7,7 +7,7 @@ from typing import Iterable, TYPE_CHECKING
|
|||
if TYPE_CHECKING:
|
||||
from ..ExecContext import ExecContext
|
||||
|
||||
from ..ExecContext import InputMode
|
||||
from ..base import InputMode
|
||||
from ..util import run_cmd, run_sudo
|
||||
from ..Package import Package, meta_tags
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ if TYPE_CHECKING:
|
|||
from ..ExecContext import ExecContext
|
||||
|
||||
from ..util import run_cmd, run_sudo
|
||||
from ..ExecContext import InputMode
|
||||
from ..base import InputMode
|
||||
from ..Package import Package, meta_tags
|
||||
|
||||
_meta_map: dict[str, str]|None = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue