Skip to content

Commit

Permalink
Refine the docstrings and typing for logging
Browse files Browse the repository at this point in the history
Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
  • Loading branch information
gridhead committed Nov 10, 2024
1 parent 02dccb7 commit c0cf347
Showing 1 changed file with 32 additions and 8 deletions.
40 changes: 32 additions & 8 deletions expedite/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,41 @@
from expedite.config import standard


def success(message) -> None:
standard.logger.info(style(message, fg="green", bold=True))
def success(text) -> None:
"""
Show textual message in success format
:param text:
:return:
"""
standard.logger.info(style(text, fg="green", bold=True))

def failure(message) -> None:
standard.logger.error(style(message, fg="red", bold=True))

def failure(text) -> None:
"""
Show textual message in failure format
def warning(message) -> None:
standard.logger.warning(style(message, fg="yellow", bold=True))
:param text:
:return:
"""
standard.logger.error(style(text, fg="red", bold=True))


def general(message) -> None:
standard.logger.info(message)
def warning(text) -> None:
"""
Show textual message in warning format
:param text:
:return:
"""
standard.logger.warning(style(text, fg="yellow", bold=True))


def general(text) -> None:
"""
Show textual message in general format
:param text:
:return:
"""
standard.logger.info(text)

0 comments on commit c0cf347

Please sign in to comment.