hotfix zshell-cli autocompletion failing #108
Reference in New Issue
Block a user
Delete Branch "hotfix-zshell-autocompletion"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Autocompletion is currently broken. This PR aims to resolve the issue.
Calling
completion_init()only when_ZSHELL_CLI_COMPLETEenv variable is set. Withoutcompletion_init(), even when autocomplete was installed, the shell would returnShell zsh not supported..Completions now work as intended.
However, running
zshell-cli --install-autocompletewhen autocompletion is already installed raises aclick.exceptions.Exit:Maybe we should hide this since it isn't very informative and can cause confusion.
Resolved now. It returns a simple print.