Skip to content

Commit

Permalink
feat: Add the display_return_code function to the execexam/display.py…
Browse files Browse the repository at this point in the history
… file.
  • Loading branch information
gkapfham committed Aug 23, 2024
1 parent e1eb38f commit bdb7cfd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions execexam/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ def make_colon_separated_string(arguments: Dict[str, Any]):
)


def display_return_code(console: Console, return_code: int) -> None:
"""Display the return code from running the specified checks(s)."""
# no errors were found in the executable examination
if return_code == 0:
console.print("[green]\u2714 All checks passed.")
else:
console.print("[red]\u2718 One or more checks failed.")


def display_diagnostics( # noqa: PLR0913
verbose: bool,
console: Console,
Expand Down

0 comments on commit bdb7cfd

Please sign in to comment.