o
    T»’hµ  ã                   @   sT  d dl mZmZ ddlmZmZ ddlmZ ddlm	Z	 ddl
mZmZ ddlmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZ ddlmZ dd	lm Z  dd
l!m"Z"m#Z#m$Z$m%Z% ddl&m'Z' ddl(m)Z)m*Z*m+Z+m,Z,m-Z- ddl.m/Z/m0Z0m1Z1m2Z2 ddl3m4Z4 ddl5m6Z6m7Z7m8Z8 de9dedee, fdd„Z:de9dedee, fdd„Z;dS )é    )ÚAnyÚOptionalé   )Ú__version_info__Ú__version__)Ú
Collection)ÚConfig)ÚContextÚMockContext)ÚAmbiguousEnvVarÚAuthFailureÚCollectionNotFoundÚExitÚ
ParseErrorÚPlatformErrorÚResponseNotAcceptedÚSubprocessPipeErrorÚThreadExceptionÚUncastableEnvVarÚUnexpectedExitÚUnknownFileTypeÚUnpicklableConfigMemberÚWatcherErrorÚCommandTimedOut)ÚExecutor)ÚFilesystemLoader)ÚArgumentÚParserÚParserContextÚParseResult)ÚProgram)ÚRunnerÚLocalÚFailureÚResultÚPromise)ÚtaskÚcallÚCallÚTask)Úpty_size)ÚFailingResponderÚ	ResponderÚStreamWatcherÚcommandÚkwargsÚreturnc                 K   ó   t ƒ j| fi |¤ŽS )aË  
    Run ``command`` in a subprocess and return a `.Result` object.

    See `.Runner.run` for API details.

    .. note::
        This function is a convenience wrapper around Invoke's `.Context` and
        `.Runner` APIs.

        Specifically, it creates an anonymous `.Context` instance and calls its
        `~.Context.run` method, which in turn defaults to using a `.Local`
        runner subclass for command execution.

    .. versionadded:: 1.0
    )r	   Úrun©r.   r/   © r4   úB/var/www/html/venv/lib/python3.10/site-packages/invoke/__init__.pyr2   "   s   r2   c                 K   r1   )a!  
    Run ``command`` in a ``sudo`` subprocess and return a `.Result` object.

    See `.Context.sudo` for API details, such as the ``password`` kwarg.

    .. note::
        This function is a convenience wrapper around Invoke's `.Context` and
        `.Runner` APIs.

        Specifically, it creates an anonymous `.Context` instance and calls its
        `~.Context.sudo` method, which in turn defaults to using a `.Local`
        runner subclass for command execution (plus sudo-related bits &
        pieces).

    .. versionadded:: 1.4
    )r	   Úsudor3   r4   r4   r5   r6   5   s   r6   N)<Útypingr   r   Ú_versionr   r   Ú
collectionr   Úconfigr   Úcontextr	   r
   Ú
exceptionsr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Úexecutorr   Úloaderr   Úparserr   r   r   r   Úprogramr    Úrunnersr!   r"   r#   r$   r%   Útasksr&   r'   r(   r)   Ú	terminalsr*   Úwatchersr+   r,   r-   Ústrr2   r6   r4   r4   r4   r5   Ú<module>   s     D