
    e                     b    d Z ddlZddlZddlmZ  ej        d          Z G d de          ZdS )zK
It displays the username of the current user when this command is invoked
    N   )SubCommandBaserepo_clic                       e Zd ZdZd Zd ZdS )
SubCommandwhoamic                     | j         rI| j                                        }| j                            t          j        |d                     d S | j                            d           d S )NF)default_flow_stylezYou are not logged in)access_tokenapiget_current_userloginfoyamldump)selfcurrent_users     8lib/python3.11/site-packages/repo_cli/commands/whoami.pymainzSubCommand.main   sd     	384466LHMM$)LUKKKLLLLLHMM122222    c                     |                     ddt                    | _        | j                            | j                   d S )Nr   z$Return information about logged user)helpdescription)r   )
add_parser__doc__	subparserset_defaultsr   )r   
subparserss     r   r   zSubCommand.add_parser   sI    #..Aw / 
 
 	###33333r   N)__name__
__module____qualname__namer   r    r   r   r   r      s7        D3 3 34 4 4 4 4r   r   )r   loggingr   baser   	getLoggerloggerr   r#   r   r   <module>r(      s{                  		:	&	&4 4 4 4 4 4 4 4 4 4r   