
    Vh                    \    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	m
Z
mZmZ 	 	 	 	 d
d	Zy)-Command line parsing for the `shell` command.    )annotationsN   )command_shell)ShellConfig   )CompositeActionCompletionFinderControllerMode
TargetModeadd_environmentsc                T   | j                  d|gd      }|j                  t        t               |j	                  d      }|j                  ddd	
       |j                  ddd       |j                  ddd       t        ||t        j                  t        j                         y)r   shellzopen an interactive shell)parentshelp)funcconfigzshell arguments)titlecmd*zrun the specified command)nargsr   z--raw
store_truezdirect to shell with no setup)actionr   z--exportPATHz+export inventory instead of opening a shell)metavarr   N)
add_parserset_defaultsr   r   add_argument_groupadd_argumentr   r
   	DELEGATEDr   SHELL)
subparsersparent	completerparserr   s        Y/home/dcms/DCMS/lib/python3.12/site-packages/ansible_test/_internal/cli/commands/shell.pydo_shellr&      s     '1&;&;( '< 'F   
 %%,=%>E	(   
,   
:   VY(@(@*BRBRS    )r"   zargparse.ArgumentParserr#   r	   )__doc__
__future__r   argparsecommands.shellr   r   r   environmentsr	   r
   r   r   r&    r'   r%   <module>r.      s<    3 "  %T#%T /%Tr'   