
                         d    d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dZ	de	 Z
d	 Zd
 Zd Zy)ul  Pretty-print utilities.

Usage:

pretty_print.Success('Woo')
pretty_print.Info('doing {thing}', thing='something')  # works like .format()

✓ Woo  (the checkbox will be green)
  doing something

Bold and italic standard formatters are available (in conjunction with
reset), e.g:

pretty_print.Success('Let me {bold}stress{reset} the {italic}importance{reset}')

    )absolute_import)division)unicode_literals)log)console_attru<   color(red="[xX]",green="[✓✔]",yellow="[-!…]"):label=""zready_symbol.c                 T   t        j                         }|j                  | |       |j                         }|j	                  |j                  d      |j                  d      |j                         d       t        j                  j                   |j                  di |       y)z+Helper function to avoid import-time races.T)bold)italic)r	   r
   resetN )
r   GetConsoleAttrColorizecopyupdateGetFontCoder   statusPrintformat)prefixcolormsg
formatterscons        2lib/googlecloudsdk/command_lib/run/pretty_print.py_Printr   0   s    ##%#,,vu *oo4o(t,  
 **:3::+
+,    c                      t        dd| fi | y)zPrint a nice little green checkbox, and a message.

  Args:
    msg: str, message accepting standard formatters.
    **formatters: extra args acting like .format()
  u   ✓ greenNr   r   r   s     r   Successr!   =   s     	#,,r   c                      t        dd| fi | y)zSimple print, with added left margin for alignment.

  Args:
    msg: str, message accepting standard formatters.
    **formatters: extra args acting like .format()
  z  Nr   r    s     r   Infor#   G   s     	tS'J'r   N)__doc__
__future__r   r   r   googlecloudsdk.corer   googlecloudsdk.core.consoler   READY_COLUMN_COLORREADY_COLUMNr   r!   r#   r   r   r   <module>r*      sD   " '  ' # 45  123
--(r   