Skip to content

Commit

Permalink
Document hera/config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iafisher committed Dec 13, 2018
1 parent 3eefdd0 commit 25a0201
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions hera/config.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
LINES = None

"""Global configuration set by the main function."""

# ANSI color codes (https://stackoverflow.com/questions/4842424/)
# When the --no-color flag is specified, these constants are set to the empty
# string, so they can be used unconditionally in your code but will still obey
# the flag value.
# The lines of the program being processed (a list of strings). Used for error messages.
LINES = None


def _make_ansi(*params):
return "\033[" + ";".join(map(str, params)) + "m"


# ANSI color codes (https://stackoverflow.com/questions/4842424/)
# When the --no-color flag is specified, these constants are set to the empty string, so
# they can be used unconditionally in your code but will still obey the flag value.

ANSI_RED_BOLD = _make_ansi(31, 1)
ANSI_MAGENTA_BOLD = _make_ansi(35, 1)
ANSI_RESET = _make_ansi(0)

0 comments on commit 25a0201

Please sign in to comment.