diff --git a/hera/config.py b/hera/config.py index 1f62812..762891d 100644 --- a/hera/config.py +++ b/hera/config.py @@ -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)