g-plane / zsh-yarn-autocompletions

Zsh plugin for Yarn autocompletions.
MIT License
578 stars 18 forks source link

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

Closed jedster1111 closed 4 years ago

jedster1111 commented 4 years ago

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?

g-plane commented 4 years ago

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

g-plane commented 4 years ago

New version has been released. Sorry for delay.

jedster1111 commented 4 years ago

Thanks 😄 Appreciate the plugin!

g-plane commented 4 years ago

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