PageRenderTime 10ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/bash_completion_lib/complete -o filenames/convert

http://github.com/brinkman83/bashrc
#! | 49 lines | 42 code | 7 blank | 0 comment | 0 complexity | 1d9eb3faddc0d07a4452abc7c532f6f6 MD5 | raw file
 1comp_include _filedir _get_cword _ImageMagick
 2
 3
 4_convert()
 5{
 6    local cur
 7
 8    COMPREPLY=()
 9    cur=`_get_cword`
10
11    _ImageMagick
12
13    if [[ "$cur" == -* ]]; then
14        COMPREPLY=( $( compgen -W '-adjoin -affine -antialias -append \
15            -authenticate -average -background -black-threshold \
16            -blue-primary -blur -border -bordercolor -channel \
17            -charcoal -chop -clip -coalesce -colorize -colors \
18            -colorspace -comment -compress -contrast -convolve \
19            -crop -cycle -debug -deconstruct -delay -density \
20            -depth -despeckle -display -dispose -dither -draw \
21            -edge -emboss -encoding -endian -enhance -equalize \
22            -extract -fill -filter -flatten -flip -flop -font \
23            -frame -fuzz -gamma -gaussian -geometry \
24            -green-primary -gravity -help -implode -intent \
25            -interlace -label -lat -level -limit -list -log -loop \
26            -map -mask -matte -median -modulate -monochrome \
27            -morph -mosaic -negate -noop -noise -normalize \
28            -opaque -ordered-dither -page -paint -ping -pointsize \
29            -preview -profile -quality -raise -random-threshold \
30            -region -raise -red-primary -render -resize -resample \
31            -roll -rotate -sample -sampling-factor -scale -scene \
32            -seed -segment -shade -sharpen -shave -shear -size \
33            -solarize -spread -stroke -strokewidth -swirl \
34            -texture -threshold -thumbnail -tile -transform \
35            -transparent -treedepth -trim -type -undercolor \
36            -units -unsharp -verbose -version -view \
37            -virtual-pixel -wave -white-point -white-threshold \
38            -write' -- $cur ) )
39    elif [[ "$cur" == +* ]]; then
40        COMPREPLY=( $( compgen -W '+adjoin +append +compress \
41            +contrast +debug +dither +endian +gamma +label +map \
42            +mask +matte +negate +noise +page +raise +render \
43            +write' -- $cur ) ) 
44    else
45        _filedir
46    fi
47} # _convert()
48
49