�
E��cd � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ej Z ej Z dZ
ded d
fd�Z d#dede
de
de
de
d d
fd�Z d$dedeee eeeef f dee dee de
d eeef fd�Z d$dedee dee de
d eeef f
d�Z d%dedededee
dee de
d e
fd�Z d$dedee deee dee de
d eeee f fd�Z d$dedee dee de
d eeef f
d �Zd!ededede
d d
f
d"�Zd
S )&a$ Certbot display.
This module (`certbot.display.util`) or its companion `certbot.display.ops`
should be used whenever:
- Displaying status information to the user on the terminal
- Collecting information from the user via prompts
Other messages can use the `logging` module. See `log.py`.
� )�List)�Optional)�Tuple)�Union)�obj�H �msg�returnNc �Z � t j � � � | ddd�� � dS )zMDisplay a basic status message.
:param str msg: message to display
F)�pause�decorate�wrapN�r �get_display�notification)r s �6/usr/lib/python3/dist-packages/certbot/display/util.py�notifyr s/ � � �O���"�"�3�e�e�%�"�P�P�P�P�P� TF�messager r �force_interactiver
c �\ � t j � � � | ||||�� � dS )a� Displays a notification and waits for user acceptance.
:param str message: Message to display
:param bool pause: Whether or not the program should pause for the
user's confirmation
:param bool wrap: Whether or not the application should wrap text
:param bool force_interactive: True if it's safe to prompt the user
because it won't cause any workflow regressions
:param bool decorate: Whether to surround the message with a
decorated frame
)r r r r
Nr )r r r r r
s r r r & |