feat: add presets

This commit is contained in:
2023-03-16 15:07:11 +03:00
parent 23ca8c0cac
commit 8b718fda79
15 changed files with 357 additions and 142 deletions
+20
View File
@@ -0,0 +1,20 @@
from typing import Dict, List
from pydantic import BaseModel
__all__ = ("TaskPreset", "FilePreset", "Preset")
class TaskPreset(BaseModel):
conditions: Dict[str, str]
commands: List[str]
class FilePreset(BaseModel):
filename: str
loader: str
tasks: Dict[str, Dict[str, TaskPreset]]
class Preset(BaseModel):
presets: Dict[str, FilePreset]