forked from p15670423/monkey
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:
parent
9d73252ff5
commit
39e18b9c73
|
@ -2,3 +2,4 @@
|
|||
Used for a common things between agent and island
|
||||
"""
|
||||
from .di_container import DIContainer, UnregisteredTypeError
|
||||
from .operating_systems import OperatingSystems
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
from enum import Enum
|
||||
|
||||
|
||||
class OperatingSystems(Enum):
|
||||
LINUX = "linux"
|
||||
WINDOWS = "windows"
|
Loading…
Reference in New Issue