
    =e                     t    d Z ddlmZmZ ddlZddlZddlZddlmZ  ej	        d          Z
d
dZd
dZd	 ZdS )z+
Manage your Anaconda repository channels.
    )unicode_literalsprint_functionN)get_server_apizbinstar.channelFc                    t          | j        | j                  }| j        r| j        }n|                                }|d         }|rt
                              d           | j        rT|                    | j        d         || j        d                    t          j	        d|gt          | j                  R   d S | j        r>|                    | j        |           t
          	                    d|| j                   d S | j        rt
          	                    |                                           |                    |                                          D ]\\  }}t#          |t$                    rt
          	                    d|           6t
          	                    d||d	         rd
nd           ]d S | j        r|                    | j        |          }t
          	                    d|                                | j        |d	         rd
nd           |d         D ]}t
          	                    d|           d S | j        rP|                    | j        |           t
          	                    d|                                | j                   d S | j        rP|                    | j        |           t
          	                    d|                                | j                   d S t3                      )Nloginz/channel command is deprecated in favor of labelr      zCopied %s %s to %szRemoved %s %sz + %s z + %s%s 	is_lockedz[locked] z%s %s %sfilesz  + %(full_name)sz%s %s is now lockedz%s %s is now unlocked)r   tokensiteorganizationuserloggerwarningcopycopy_channelinfotupleremoveremove_channellisttitlelist_channelsitems
isinstanceintshowshow_channellocklock_channelunlockunlock_channelNotImplementedError)	argsname
deprecatedaserver_apiownercurrent_userchannelr   files	            ?lib/python3.11/site-packages/binstar_client/commands/channel.pymainr.      s    TY77K &!"''))W% JHIIIy $  1udilCCC($Bty1A1ABBBBBB	 $""4;666OT4;77777	 $DJJLL!!!(66u==CCEE 	Z 	ZMGT$$$ ZHg....JtK?P1XVXYYYY		Z 	Z 
 $''	599J

ditKGX9`^`aaaM 	3 	3DKK+T2222	3 	3	 $  E222)4::<<CCCCC	 $""4;666+TZZ\\4;GGGGG!###    c                    d}|rd}|                      |d                    ||          t          j        t                    }|                    ddd                    |                     |                    d	
          }|                    dd|                                           |                    ddd                    ||                     |                    d|                                d                    ||                     |                    d|                                d                    ||                     |                    d|                                d                    ||                     |                    d|                                d                    ||                     |                    t          j
        t          ||                     d S )Nr
   z [DEPRECATED in favor of label] 
z%{}Manage your Anaconda repository {}s)helpformatter_classdescriptionz-oz--organizationzManage an organizations {}s)r1   T)requiredz--copy   )nargsmetavarz--list
store_truez{}list all {}s for a user)actionr1   z--showz{}Show all of the files in a {})r7   r1   z--lockz{}Lock a {}z--unlockz{}Unlock a {}z--removez{}Remove a {}r&   r'   )r.   )
add_parserformatargparseRawDescriptionHelpFormatter__doc__add_argumentadd_mutually_exclusive_groupupperset_defaults	functoolspartialr.   )
subparsersr&   r'   deprecated_warn	subparsergroups         r-   _add_parserrJ   ;   s'   O >=%%4;;OTRR <	 &  I 4!1 = D DT J J  L L L 22D2AAE	xq$**,,???	(//FF    
 


.55otLL    
 


!!/488  : : : 


##OT::    
 


##OT::    
 	 1$Tj Y Y YZZZZZr/   c                 L    t          | d           t          | dd           d S )Nlabel)r&   r+   Tr:   )rJ   )rF   s    r-   r;   r;   g   s0    
))))
t<<<<<<r/   )F)r?   
__future__r   r   r=   rD   loggingbinstar_client.utilsr   	getLoggerr   r.   rJ   r;    r/   r-   <module>rR      s     8 7 7 7 7 7 7 7       / / / / / /		,	-	-&$ &$ &$ &$R)[ )[ )[ )[X= = = = =r/   