Core: move OptionGroup definition to Options.py (#3325)

This commit is contained in:
Doug Hoskisson
2024-05-18 19:40:41 -07:00
committed by GitHub
parent 1b6fb7b090
commit 230a9e620b
4 changed files with 14 additions and 14 deletions

View File

@@ -1123,6 +1123,14 @@ class DeathLinkMixin:
death_link: DeathLink
class OptionGroup(typing.NamedTuple):
"""Define a grouping of options."""
name: str
"""Name of the group to categorize these options in for display on the WebHost and in generated YAMLS."""
options: typing.List[typing.Type[Option[typing.Any]]]
"""Options to be in the defined group."""
def generate_yaml_templates(target_folder: typing.Union[str, "pathlib.Path"], generate_hidden: bool = True):
import os