mirror of
https://github.com/zdharma-continuum/zinit-annex-patch-dl.git
synced 2026-09-10 07:26:19 -04:00
plugin.zsh: Provide (empty) help handler
This commit is contained in:
parent
8b2b207302
commit
6adc50cb58
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue