-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_capt
19 lines (17 loc) · 1.03 KB
/
_capt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#compdef capt
# TODO These should be dynamic and generated by capt's `list/help/scripts` commands
local -a subcmds=(
'pre_commit:(hook) Common hook with several triggers for linting, formatting, and running tests'
'prepare_commit_msg:(hook) Build a commit message based on branch name standardized format'
'commit_msg:(hook) Validate your project state or commit message before allowing a commit to go through'
'post_commit:(hook) For notifications'
'post_checkout:(hook) Set up your working directory properly for your project environment'
'pre_push:(hook) Use to validate a set of ref updates before a push occurs'
'post_rewrite:(hook) Run by commands that replace commits, (amend/rebase); same uses as post-checkout, post-merge'
'help:(cmd) Show help with descriptions of built-in triggers'
'init:(cmd) Initialize Captain files into a project (ok to run multiple times)'
'list:(cmd) List all active hooks'
'edit:(cmd) See all active triggers and open EDITOR on their control files'
'scripts:(cmd) List available scripts'
)
_describe 'command' subcmds