g-plane/zsh-yarn-autocompletions

Latest (V2.0.0) yarn-autocompletions_linux.tar.gz does not have latest code changes

Closed this issue ยท 4 comments

Download https://github.com/g-plane/zsh-yarn-autocompletions/releases/download/v2.0.0/yarn-autocompletions_linux.tar.gz
Extract files, and look at the contents of yarn-autocompletions.plugin.zsh.
It does not contain the fix made in #22.
Actual content of file is:

YARN_AUTO_COMP_PATH="$(dirname $0)/yarn-autocompletions"            
                                                                    
_yarn_autocompletions() {                                           
    compls=$($YARN_AUTO_COMP_PATH $1)                               
    completions=(${=compls})                                        
    compadd -- $completions                                         
}                                                                   
                                                                    
_yarn() {                                                           
    case $words[2] in                                               
        add)                                                        
            if [[ $words[3] == "--dev" ]]                           
            then                                                    
                _yarn_autocompletions "add-dev"                     
            else                                                    
                _yarn_autocompletions "add"                         
            fi                                                      
            ;;                                                      
        remove)                                                     
            _yarn_autocompletions "remove"                          
            ;;                                                      
        upgrade)                                                    
            _yarn_autocompletions "remove"                          
            ;;                                                      
        why)                                                        
            _yarn_autocompletions "why"                             
            ;;                                                      
        *)                                                          
            _yarn_autocompletions "scripts"                         
            ;;                                                      
    esac                                                            
}                                                                   

I haven't checked the other release artifacts, but they could have the same problem?

Solving this is easy, and I'll bump version later.

New version has been released. Sorry for delay.

Thanks ๐Ÿ˜„ Appreciate the plugin!

Feel free to star it or follow my GitHub account if you like it.