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:
Jan Lindemann 2026-04-16 11:23:05 +02:00
commit 888c0495ec
17 changed files with 50 additions and 38 deletions

View file

@ -18,7 +18,7 @@ from enum import Enum, auto
from .lib.App import App as Base
from .lib.log import *
from .lib.Distro import Distro
from .lib.ExecContext import InputMode
from .lib.base import InputMode
# Meaning of pkg.requires.xxx variables
# build: needs to be built and installed before this can be built