use $1 (the path of app user has pressed TAB for) instead of app, for which hook was generated
imply --program basename(/absolute/path/to/app) option, when --program option is absent, because when completing for multiple apps the alias should always be present
Usage: /path/to/app _completion -gm results in hook generated for app alias and works even if you have 2 app in different projects.
I've also updated hook factory tests to check syntax for all generateHook parameter combinations. Before it was checking syntax for case, when all parameters were given.
The
--multiple|-m
option is added, that will:$1
(the path of app user has pressed TAB for) instead of app, for which hook was generated--program basename(/absolute/path/to/app)
option, when--program
option is absent, because when completing for multiple apps the alias should always be presentUsage:
/path/to/app _completion -gm
results in hook generated forapp
alias and works even if you have 2app
in different projects.I've also updated hook factory tests to check syntax for all
generateHook
parameter combinations. Before it was checking syntax for case, when all parameters were given.Closes #44