-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_vcfsetop
37 lines (30 loc) · 809 Bytes
/
_vcfsetop
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#compdef vcfsetop
local curcontext="$curcontext" state line
typeset -A opt_args
local subcmds
subcmds=(filter list)
if [[ $service == "vcfsetop" ]]; then
_arguments -C -A "-*" \
'--help[show help for this command and exit]' \
'*::command:->subcmd' && return 0
if (( CURRENT == 1 )); then
_wanted commands expl 'vcfsetop command' compadd -a subcmds
return
fi
service="$words[1]"
curcontext="${curcontext%:*}=$service:"
fi
case $service in
(filter)
_arguments \
'--exclude[Drop variants from this index]' \
'--include[Keep variants from this index]' \
'--require[Keep variants from this index only]' \
'::vcf:_files'
;;
(list)
;;
(*)
_message "unknown vcfsetop command completion: $service"
;;
esac