From 886330aa80b84d0c327c3c73fb6d74c65750f0ef Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Sun, 30 Mar 2025 17:36:22 -0500 Subject: [PATCH] Proper licensing --- src/cli.py | 4 ++++ src/gui.py | 4 ++++ src/messaging.py | 47 ++++++++++++++++++++--------------------------- src/processor.py | 4 ++++ 4 files changed, 32 insertions(+), 27 deletions(-) diff --git a/src/cli.py b/src/cli.py index d5ebd1b..9ceef87 100644 --- a/src/cli.py +++ b/src/cli.py @@ -1,3 +1,7 @@ +""" +@author: Jose Stovall | github.com/oitsjustjose | bsky||@oitsjustjose.com +""" + import sys from argparse import ArgumentParser, RawTextHelpFormatter diff --git a/src/gui.py b/src/gui.py index 449c81c..fb76114 100644 --- a/src/gui.py +++ b/src/gui.py @@ -1,3 +1,7 @@ +""" +@author: Jose Stovall | github.com/oitsjustjose | bsky||@oitsjustjose.com +""" + import platform import subprocess import sys diff --git a/src/messaging.py b/src/messaging.py index c6f181a..c12f89f 100644 --- a/src/messaging.py +++ b/src/messaging.py @@ -1,3 +1,7 @@ +""" +@author: Jose Stovall | github.com/oitsjustjose | bsky||@oitsjustjose.com +""" + import logging import os import sys @@ -27,32 +31,6 @@ class NoPrintStatements: sys.stdout = self._original_stdout -class MessageInterface: - def info(input: any): - """Displays an informational message to the preferred output method of choice - - Args: - input (any): The input to display to the user (will be wrapped into a string) - """ - raise "Cannot call base class!" - - def warning(input: any): - """Displays a warning message to the preferred output method of choice - - Args: - input (any): The input to display to the user (will be wrapped into a string) - """ - raise "Cannot call base class!" - - def error(input: any): - """Displays an error message to the preferred output method of choice - - Args: - input (any): The input to display to the user (will be wrapped into a string) - """ - raise "Cannot call base class!" - - class CustomFormatter(logging.Formatter): """ A logging colorator @@ -81,7 +59,7 @@ class CustomFormatter(logging.Formatter): return formatter.format(record) -class CliOutput(MessageInterface): +class CliOutput: def __init__(self): self.logger = logging.getLogger(__name__) self.logger.setLevel(logging.INFO) @@ -91,10 +69,25 @@ class CliOutput(MessageInterface): self.logger.addHandler(ch) def info(self, input): + """Displays an informational message to the preferred output method of choice + + Args: + input (any): The input to display to the user (will be wrapped into a string) + """ self.logger.info(f"{input}") def warning(self, input): + """Displays a warning message to the preferred output method of choice + + Args: + input (any): The input to display to the user (will be wrapped into a string) + """ self.logger.warning(f"{input}") def error(self, input): + """Displays an error message to the preferred output method of choice + + Args: + input (any): The input to display to the user (will be wrapped into a string) + """ self.logger.error(f"{input}") diff --git a/src/processor.py b/src/processor.py index d775076..3741fe0 100644 --- a/src/processor.py +++ b/src/processor.py @@ -1,3 +1,7 @@ +""" +@author: Jose Stovall | github.com/oitsjustjose | bsky||@oitsjustjose.com +""" + import os import shutil import subprocess