idmtools_platform_comps.cli.cli_functions module¶
-
idmtools_platform_comps.cli.cli_functions.
validate_range
(value: float, min: float, max: float) → Tuple[bool, str]¶ Function used to validate an integer value between min and max :param value: The value set by the user :param min: Minimum value :param max: Maximum value
Returns: tuple with validation result and error message if needed
-
idmtools_platform_comps.cli.cli_functions.
environment_list
(previous_settings: Dict, current_field: dataclasses.Field) → Dict¶ Allows the CLI to provide a list of available environments. Uses the previous_settings to get the endpoint to query for environments :param previous_settings: previous settings set by the user in the CLI. :param current_field: Current field specs
Returns: updates to the choices and default