cloudos_cli.utils.last_wf¶
Functions
|
Find the most recently created workflow whose .name matches target_name. |
- cloudos_cli.utils.last_wf.youngest_workflow_id_by_name(content, target_name, ignore_case=False, return_workflow=True)[source]¶
Find the most recently created workflow whose .name matches target_name.
- Parameters:
content (dict) – API response dict containing top-level “workflows”.
target_name (str) – Name to match.
ignore_case (bool, default False) – If True, case-insensitive comparison.
return_workflow (bool, default False) – If True, return the whole workflow dict; else return its _id.
- Returns:
_id (default), full workflow dict (if return_workflow=True), or None if no match.
- Return type:
str | dict | None