Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Kit Authoring Improvements] * Added print_addon_descriptions and run_extended_addon helpers to support extended addon scripts. Rather than have all the addons in the `hooks/addon` file, you can add individual `hook/addon-<name>~<shortcut>`. To do so, you need to follow the following conventions: * The script gets passed as its first argument the action to take. This is either help or run. Help prints out the description to be used in list, and run causes the script to run. * The main hooks/addon script must use print_addon_descriptions in its list command block, with alternative arguments of the base commands and descriptions. Example: ``` list) print_addon_descriptions \ "command" "description of command" \ "another" "description of another command" ;; ``` * The main hook/addon script uses run_extended_addon as its catch-all `*)` block.
- Loading branch information