Skip to content

Commit

Permalink
Add a new helper method to write bold messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hussainweb committed Jun 13, 2020
1 parent 83e62aa commit 1d2ff84
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions axltempl/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,10 @@ def write_info(line):
Write a single info line using click
"""
click.secho(line, fg="green")


def write_important(line, prefix="[IMPORTANT] "):
"""
Write a single info line with important prefix
"""
click.secho(prefix + line, fg="green", bold=True)

0 comments on commit 1d2ff84

Please sign in to comment.