Common: Add OperatingSystems enum

Enough is enough! I have had it with these monkey-fighting strings on
this Monday to Friday plane! Everybody strap in.

Seriously, it's time to stop using strings all over the place to
identify the OS. An Enum is a better, more strongly-typed solution.
This commit is contained in:
Mike Salvatore 2022-06-16 19:31:52 -04:00
parent 9d73252ff5
commit 39e18b9c73
2 changed files with 7 additions and 0 deletions

View File

@ -2,3 +2,4 @@
Used for a common things between agent and island
"""
from .di_container import DIContainer, UnregisteredTypeError
from .operating_systems import OperatingSystems

View File

@ -0,0 +1,6 @@
from enum import Enum
class OperatingSystems(Enum):
LINUX = "linux"
WINDOWS = "windows"