
    Mg*                     h    S SK r S SKrS SKJrJrJr  \" SS9\" \S9\" S5      S 5       5       5       rg)    N)pluginrequireLINUXid)native)platformwhoamic                     S[         4S jnUS:X  a  [        R                  " S5        gU" U5      (       d  U R                  S5        g[        R                  " S[	        U5      -   5        g)z
Tells you the current user name
whoami:          says the current effective user ID's name
whoami -options: passes the options to the linux
command "id" and returns the response
returnc                     / SQnU R                  S5       HF  n[        R                  " SU5      (       a  M!  [        R                  " SU5      (       a  M?  X!;  d  MF    g   g)z(
Ensure that the string is not damaging
)	z	--contextz--groupz--groupsz--namez--realz--userz--zeroz--helpz	--version z(^[a-z][a-z0-9-]*$)|(^[0-9]+$)z^-[agnruzGZ]+$FT)splitrematch)soptionsis      </Users/admin/workspace/ai/Jarvis/jarviscli/plugins/whoami.pycheckwhoami.<locals>.check   sU    


 A HH=qAA HH-q11         zid -unNz)There seems to be some awkward stuff ...?zid )boolossystemsaystr)jarvisr   r   s      r   r	   r	      sT    D @ 	Bw
		(88

>?IIec!fnr   )r   r   r   r   r   r	    r   r   <module>r       sD    	 	 ) ) 	%0   0r   