
    3i                    l    d dl mZ d dlmZ d dlmZ erd dlmZ d dlm	Z	 d dl
mZ  G d de      ZdgZy	)
    )annotations)TYPE_CHECKING)ViaTemplateActivator)Iterator)Path)Creatorc                  .    e Zd ZddZedd       ZddZy)NushellActivatorc              #     K   d y w)Nzactivate.nu )selfs    Y/var/www/opsc/venv/lib/python3.12/site-packages/virtualenv/activation/nushell/__init__.py	templateszNushellActivator.templates   s     s   c                p    d}d}| D ]  }|dk(  r|dz  }t        ||      }d} d|dz   z  }d| d|  d| S )a  Nushell supports raw strings like: r###'this is a string'###.

        https://github.com/nushell/nushell.github.io/blob/main/book/working_with_strings.md

        This method finds the maximum continuous sharps in the string and then quote it with an extra sharp.

        r   #   r')max)string
max_sharpscurrent_sharpscharwrappings        r   quotezNushellActivator.quote   sh     
 	#Ds{!# <
!"	# *q.)8*AfXQxj11    c           
     :   | j                   dn| j                   t        |j                        |j                  t        |j                  j                  |j                              t        |j                  dd       xs dt        |j                  dd       xs ddS )N tcl_libtk_lib)__VIRTUAL_PROMPT____VIRTUAL_ENV____VIRTUAL_NAME____BIN_NAME____TCL_LIBRARY____TK_LIBRARY__)flag_promptstrdestenv_namebin_dirrelative_togetattrinterpreter)r   creatordest_folders      r   replacementszNushellActivator.replacements&   s    (,(8(8(@"dFVFV"7<<0 ' 0 0 ; ;GLL IJ&w':':ItLRPR%g&9&98TJPb
 	
r   N)returnzIterator[str])r   r(   r2   r(   )r/   r   r0   r   r2   zdict[str, str])__name__
__module____qualname__r   staticmethodr   r1   r   r   r   r
   r
      s      2 2&
r   r
   N)
__future__r   typingr   "virtualenv.activation.via_templater   collections.abcr   pathlibr   virtualenv.create.creatorr   r
   __all__r   r   r   <module>r>      s4    "   C(1 
+  
H r   