Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SafetyQuincyF committed Oct 22, 2024
1 parent 89fb85f commit a8d55ac
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions safety/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,24 +241,23 @@ 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
- Green for the suggestion of the new command (if provided)
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")
Expand Down

0 comments on commit a8d55ac

Please sign in to comment.