Classes | |
| class | CSIColor |
Functions | |
| bool | is_tool (str name) |
| Check whether an executable exists on PATH. More... | |
| def | parse_yaml (str file_path) |
| str | prompt_options (list[tuple[str, Any]] options, int default=1) |
| bool | query_yes_no (str question, str default="yes") |
| Ask a yes/no question via input() and return their answer. More... | |
| def | write_flush (str msg) |
| Write a message to standard output and flush the buffer. More... | |
| bool leo_fw.utils.is_tool | ( | str | name | ) |
| str leo_fw.utils.prompt_options | ( | list[tuple[str, Any]] | options, |
| int | default = 1 |
||
| ) |
| bool leo_fw.utils.query_yes_no | ( | str | question, |
| str | default = "yes" |
||
| ) |
Ask a yes/no question via input() and return their answer.
| question | The question that is presented to the user. |
| default | The presumed answer if the user just hits <Enter>. It must be "yes" (the default), "no" or None (meaning an answer is required of the user). |