
    l:i                     R    d dl Z d dlmZmZ d dlmZmZ eZ ed      d        Zd Z	y)    N)for_appreplace_command)get_scriptsnpm_availablenpmc                 Z    t        d | j                  D              xr d| j                  v S )Nc              3   >   K   | ]  }|j                  d         yw)ruN)
startswith).0parts     W/var/www/html/bot/venv/lib/python3.12/site-packages/thefuck/rules/npm_missing_script.py	<genexpr>zmatch.<locals>.<genexpr>
   s     G$%Gs   znpm ERR! missing script: )anyscript_partsoutput)commands    r   matchr      s,    G'2F2FGG >+w~~=?    c                 r    t        j                  d| j                        d   }t        | |t	                     S )Nz.*missing script: (.*)\nr   )refindallr   r   r   )r   misspelled_scripts     r   get_new_commandr      s4    

#W^^55687$5{}EEr   )
r   thefuck.utilsr   r   thefuck.specific.npmr   r   enabled_by_defaultr   r    r   r   <module>r      s2    	 2 ;"  	? ?
Fr   