
    wBf                     @    d Z ddlmZmZmZ dedefdZdededefdZy	)
zrCLI implementation for `conda notices`.

Manually retrieves channel notifications, caches them and displays them.
    )ArgumentParser	Namespace_SubParsersActionsub_parsersreturnc                     ddl m} ddlm}m} d} |d| d      } |d      } | j
                  	 d|||d	|} ||        ||       |j                  d
       |S )N   )dals   )add_parser_channelsadd_parser_jsonz&Retrieve latest channel notifications.z	
        z

        Conda channel maintainers have the option of setting messages that
        users will see intermittently. Some of these notices are informational
        while others are messages concerning the stability of the channel.

        z_
        Examples::

            conda notices

            conda notices -c defaults

        )helpdescriptionepilogzconda.cli.main_notices.execute)func)notices)
auxlib.ishr
   helpersr   r   
add_parserset_defaults)	r   kwargsr
   r   r   summaryr   r   ps	            6lib/python3.12/site-packages/conda/cli/main_notices.pyconfigure_parserr      s    !=6G			 			K 		F 				
 	A ANN8N9H    argsparserc                     ddl m} ddlm} 	 |j	                         }|j                  |       y# t
        $ r} |d|       d}~ww xY w)zLCommand that retrieves channel notifications, caches them and displays them.r	   )
CondaError)corezUnable to retrieve notices: Nr   )
exceptionsr    r   r!   retrieve_noticesOSErrordisplay_notices)r   r   r    r   channel_notice_setexcs         r   executer(   4   sU    ')?$557 ./  ?7u=>>?s   0 	A	AA	N)__doc__argparser   r   r   r   intr(    r   r   <module>r-      sB   
 B A&"3 &. &R) ^  r   