From d27d9b91689f0047fd6a162e9f83381c0fc34738 Mon Sep 17 00:00:00 2001 From: Richard Mwewa <74001397+rly0nheart@users.noreply.github.com> Date: Fri, 25 Nov 2022 02:50:59 +0200 Subject: [PATCH] Update and rename sign_vars.py to message_prefixes.py --- octosuite/message_prefixes.py | 14 ++++++++++++++ octosuite/sign_vars.py | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 octosuite/message_prefixes.py delete mode 100644 octosuite/sign_vars.py diff --git a/octosuite/message_prefixes.py b/octosuite/message_prefixes.py new file mode 100644 index 0000000..f65d0e4 --- /dev/null +++ b/octosuite/message_prefixes.py @@ -0,0 +1,14 @@ +from octosuite.colors import red, white, green, reset + +""" +MessagePrefix *Even here, I couldn't think of a good name.* The Attributes class holds the signs/symbols that show what +a notification in OctoSuite might be all about. This might not be very important or necessary in some cases, +but I think it's better to know the severity of the notifications you get in a program. +""" +class MessagePrefix: + prompt = f"{white}[{green}?{white}]{reset}" + warning = f"{white}[{red}!{white}]{reset}" + error = f"{white}[{red}x{white}]{reset}" + positive = f"{white}[{green}+{white}]{reset}" + negative = f"{white}[{red}-{white}]{reset}" + info = f"{white}[{green}*{white}]{reset}" diff --git a/octosuite/sign_vars.py b/octosuite/sign_vars.py deleted file mode 100644 index dceb359..0000000 --- a/octosuite/sign_vars.py +++ /dev/null @@ -1,14 +0,0 @@ -from octosuite.colors import red, white, green, reset - -""" -SignVar *Even here, I couldn't think of a good name.* The Attributes class holds the signs/symbols that show what -a notification in OctoSuite might be all about. This might not be very important or necessary in some cases, -but I think it's better to know the severity of the notifications you get in a program. -""" -class SignVar: - prompt = f"{white}[{green} ? {white}]{reset}" - warning = f"{white}[{red} ! {white}]{reset}" - error = f"{white}[{red} x {white}]{reset}" - positive = f"{white}[{green} + {white}]{reset}" - negative = f"{white}[{red} - {white}]{reset}" - info = f"{white}[{green} * {white}]{reset}"