From a8d55aca774160e13fd4668dca564e6ee242bcd1 Mon Sep 17 00:00:00 2001 From: SafetyQuincyF Date: Tue, 22 Oct 2024 15:40:30 -0400 Subject: [PATCH] fix --- safety/cli.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/safety/cli.py b/safety/cli.py index 1c5536b4..fe9f001d 100644 --- a/safety/cli.py +++ b/safety/cli.py @@ -241,13 +241,13 @@ def print_deprecation_message( new_command: Optional[str] = None ) -> None: """ - Print a formatted deprecation message for the 'check' command. + Print a formatted deprecation message for a command. This function uses the click library to output a visually distinct - message in the console, warning users about the deprecation of the - 'check' command. It includes information about the deprecation date + message in the console, warning users about the deprecation of a + specified command. It includes information about the deprecation date and suggests an alternative command to use, if provided. - + The message is formatted with colors and styles for emphasis: - Yellow for the border and general information - Red for the 'DEPRECATED' label @@ -255,10 +255,9 @@ def print_deprecation_message( Parameters: - old_command (str): The name of the deprecated command. - - deprecation_date (datetime): The date when the command will be deprecated. - - new_command (str, optional): The name of the new command to suggest. Default is None. + - deprecation_date (datetime): The date when the command will no longer be supported. + - new_command (str, optional): The name of the alternative command to suggest. Default is None. """ - click.echo("\n") click.echo(click.style(BAR_LINE, fg="yellow", bold=True)) click.echo("\n")