plugin.zsh: Provide (empty) help handler

This commit is contained in:
Sebastian Gniazdowski 2019-09-15 03:56:31 +02:00
parent 8b2b207302
commit 6adc50cb58

View file

@ -6,11 +6,16 @@
autoload -Uz :za-patch-dl-handler
# An empty stub to fill the help handler fields
:za-patch-dl-help-null-handler() { :; }
# Register !atclone hook
@zplg-register-annex "z-a-test" hook:\!atclone \
:za-patch-dl-handler \
:za-patch-dl-help-handler \
:za-patch-dl-help-null-handler \
"dl''|patch''" # register a new ice-mod: test''
# Register !atpull hook
@zplg-register-annex "z-a-test" hook:\!atpull \
:za-patch-dl-handler \
:za-patch-dl-help-handler
:za-patch-dl-help-null-handler