(description: str, error: bool = False)
| 645 | step = 0 |
| 646 | |
| 647 | def print_step(description: str, error: bool = False) -> None: |
| 648 | nonlocal step |
| 649 | step += 1 |
| 650 | click.echo( |
| 651 | "{} {}".format( |
| 652 | click.style(f"[{step}/{step_count}]", fg="blue"), |
| 653 | click.style(description, fg="green" if not error else "red"), |
| 654 | ), |
| 655 | file=stdout, |
| 656 | ) |
| 657 | |
| 658 | yield print_step |
no outgoing calls
no test coverage detected