
    e                     n    d Z ddlmZ ddlZddlmZ ddlmZ ddlm	Z	  ej
        d          Zd Zd	 ZdS )
z+
Print the information of the current user
    )unicode_literalsN)errors)get_server_api)pprint_userzbinstar.whoamic                 &   t          | j        | j                  }	 |                                }nQ# t          j        $ r?}t                              |           t                              d           Y d }~dS d }~ww xY wt          |           d S )NzAnonymous User   )
r   tokensiteuserr   Unauthorizedloggerdebuginfor   )argsaserver_apir   errs       >lib/python3.11/site-packages/binstar_client/commands/whoami.pymainr      s     TY77K!!   S$%%%qqqqq
 s   1 A? 4A::A?c                 v    |                      ddt                    }|                    t                     d S )Nwhoamiz)Print the information of the current user)helpdescription)r   )
add_parser__doc__set_defaultsr   )
subparsers	subparsers     r   r   r      sC    %%h+V29 & ; ;I %%%%%    )r   
__future__r   loggingbinstar_clientr   binstar_client.utilsr   binstar_client.utils.pprintr   	getLoggerr   r   r    r   r   <module>r&      s     ( ' ' ' ' '  ! ! ! ! ! ! / / / / / / 3 3 3 3 3 3		+	,	,
 
 
& & & & &r   