summaryrefslogtreecommitdiff
path: root/completions/convert
diff options
context:
space:
mode:
Diffstat (limited to 'completions/convert')
-rw-r--r--completions/convert202
1 files changed, 101 insertions, 101 deletions
diff --git a/completions/convert b/completions/convert
index 3ebfc5e9..ef7baea9 100644
--- a/completions/convert
+++ b/completions/convert
@@ -4,122 +4,122 @@ _ImageMagick()
{
case $prev in
-channel)
- COMPREPLY=( $(compgen -W 'Red Green Blue Opacity Matte Cyan
- Magenta Yellow Black' -- "$cur") )
+ COMPREPLY=($(compgen -W 'Red Green Blue Opacity Matte Cyan
+ Magenta Yellow Black' -- "$cur"))
return
;;
-colormap)
- COMPREPLY=( $(compgen -W 'shared private' -- "$cur") )
+ COMPREPLY=($(compgen -W 'shared private' -- "$cur"))
return
;;
-colorspace)
- COMPREPLY=( $(compgen -W 'GRAY OHTA RGB Transparent XYZ YCbCr YIQ
- YPbPr YUV CMYK' -- "$cur") )
+ COMPREPLY=($(compgen -W 'GRAY OHTA RGB Transparent XYZ YCbCr YIQ
+ YPbPr YUV CMYK' -- "$cur"))
return
;;
-compose)
- COMPREPLY=( $(compgen -W 'Over In Out Atop Xor Plus Minus Add
+ COMPREPLY=($(compgen -W 'Over In Out Atop Xor Plus Minus Add
Subtract Difference Multiply Bumpmap Copy CopyRed CopyGreen
- CopyBlue CopyOpacity' -- "$cur") )
+ CopyBlue CopyOpacity' -- "$cur"))
return
;;
-compress)
- COMPREPLY=( $(compgen -W 'None BZip Fax Group4 JPEG Lossless LZW
- RLE Zip' -- "$cur") )
+ COMPREPLY=($(compgen -W 'None BZip Fax Group4 JPEG Lossless LZW
+ RLE Zip' -- "$cur"))
return
;;
-dispose)
- COMPREPLY=( $(compgen -W 'Undefined None Background Previous' \
- -- "$cur") )
+ COMPREPLY=($(compgen -W 'Undefined None Background Previous' \
+ -- "$cur"))
return
;;
-encoding)
- COMPREPLY=( $(compgen -W 'AdobeCustom AdobeExpert AdobeStandard
+ COMPREPLY=($(compgen -W 'AdobeCustom AdobeExpert AdobeStandard
AppleRoman BIG5 GB2312 Latin2 None SJIScode Symbol Unicode
- Wansung' -- "$cur") )
+ Wansung' -- "$cur"))
return
;;
-endian)
- COMPREPLY=( $(compgen -W 'MSB LSB' -- "$cur") )
+ COMPREPLY=($(compgen -W 'MSB LSB' -- "$cur"))
return
;;
-filter)
- COMPREPLY=( $(compgen -W 'Point Box Triangle Hermite Hanning
+ COMPREPLY=($(compgen -W 'Point Box Triangle Hermite Hanning
Hamming Blackman Gaussian Quadratic Cubic Catrom Mitchell
- Lanczos Bessel Sinc' -- "$cur") )
+ Lanczos Bessel Sinc' -- "$cur"))
return
;;
-format)
- COMPREPLY=( $(compgen -W "$(convert -list format | awk \
+ COMPREPLY=($(compgen -W "$(convert -list format | awk \
'/ [r-][w-][+-] / { sub("[*]$","",$1); print tolower($1) }')" \
- -- "$cur") )
+ -- "$cur"))
return
;;
-gravity)
- COMPREPLY=( $(compgen -W 'Northwest North NorthEast West Center
- East SouthWest South SouthEast' -- "$cur") )
+ COMPREPLY=($(compgen -W 'Northwest North NorthEast West Center
+ East SouthWest South SouthEast' -- "$cur"))
return
;;
-intent)
- COMPREPLY=( $(compgen -W 'Absolute Perceptual Relative
- Saturation' -- "$cur") )
+ COMPREPLY=($(compgen -W 'Absolute Perceptual Relative
+ Saturation' -- "$cur"))
return
;;
-interlace)
- COMPREPLY=( $(compgen -W 'None Line Plane Partition' -- "$cur") )
+ COMPREPLY=($(compgen -W 'None Line Plane Partition' -- "$cur"))
return
;;
-limit)
- COMPREPLY=( $(compgen -W 'Disk File Map Memory' -- "$cur") )
+ COMPREPLY=($(compgen -W 'Disk File Map Memory' -- "$cur"))
return
;;
-list)
- COMPREPLY=( $(compgen -W 'Delegate Format Magic Module Resource
- Type' -- "$cur") )
+ COMPREPLY=($(compgen -W 'Delegate Format Magic Module Resource
+ Type' -- "$cur"))
return
;;
-map)
- COMPREPLY=( $(compgen -W 'best default gray red green blue' \
- -- "$cur") )
+ COMPREPLY=($(compgen -W 'best default gray red green blue' \
+ -- "$cur"))
_filedir
return
;;
-noise)
- COMPREPLY=( $(compgen -W 'Uniform Gaussian Multiplicative
- Impulse Laplacian Poisson' -- "$cur") )
+ COMPREPLY=($(compgen -W 'Uniform Gaussian Multiplicative
+ Impulse Laplacian Poisson' -- "$cur"))
return
;;
-preview)
- COMPREPLY=( $(compgen -W 'Rotate Shear Roll Hue Saturation
+ COMPREPLY=($(compgen -W 'Rotate Shear Roll Hue Saturation
Brightness Gamma Spiff Dull Grayscale Quantize Despeckle
ReduceNoise AddNoise Sharpen Blur Treshold EdgeDetect Spread
Shade Raise Segment Solarize Swirl Implode Wave OilPaint
- CharcoalDrawing JPEG' -- "$cur") )
+ CharcoalDrawing JPEG' -- "$cur"))
return
;;
- -mask|-profile|-texture|-tile|-write)
+ -mask | -profile | -texture | -tile | -write)
_filedir
return
;;
-type)
- COMPREPLY=( $(compgen -W 'Bilevel Grayscale Palette PaletteMatte
+ COMPREPLY=($(compgen -W 'Bilevel Grayscale Palette PaletteMatte
TrueColor TrueColorMatte ColorSeparation ColorSeparationlMatte
- Optimize' -- "$cur") )
+ Optimize' -- "$cur"))
return
;;
-units)
- COMPREPLY=( $(compgen -W 'Undefined PixelsPerInch
- PixelsPerCentimeter' -- "$cur") )
+ COMPREPLY=($(compgen -W 'Undefined PixelsPerInch
+ PixelsPerCentimeter' -- "$cur"))
return
;;
-virtual-pixel)
- COMPREPLY=( $(compgen -W 'Constant Edge mirror tile' -- "$cur") )
+ COMPREPLY=($(compgen -W 'Constant Edge mirror tile' -- "$cur"))
return
;;
-visual)
- COMPREPLY=( $(compgen -W 'StaticGray GrayScale StaticColor
+ COMPREPLY=($(compgen -W 'StaticGray GrayScale StaticColor
PseudoColor TrueColor DirectColor defaut visualid' \
- -- "$cur") )
+ -- "$cur"))
return
;;
esac
@@ -134,17 +134,17 @@ _convert()
_ImageMagick && return
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") )
- elif [[ "$cur" == +* ]]; then
- COMPREPLY=( $(compgen -W '+adjoin +append +compress +contrast +debug
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1" -help)' -- "$cur"))
+ elif [[ $cur == +* ]]; then
+ COMPREPLY=($(compgen -W '+adjoin +append +compress +contrast +debug
+dither +endian +gamma +label +map +mask +matte +negate +noise
- +page +raise +render +write' -- "$cur") )
+ +page +raise +render +write' -- "$cur"))
else
_filedir
fi
} &&
-complete -F _convert convert
+ complete -F _convert convert
_mogrify()
{
@@ -153,16 +153,16 @@ _mogrify()
_ImageMagick && return
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") )
- elif [[ "$cur" == +* ]]; then
- COMPREPLY=( $(compgen -W '+compress +contrast +debug +dither +endian
- +gamma +label +map +mask +matte +negate +page +raise' -- "$cur") )
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1" -help)' -- "$cur"))
+ elif [[ $cur == +* ]]; then
+ COMPREPLY=($(compgen -W '+compress +contrast +debug +dither +endian
+ +gamma +label +map +mask +matte +negate +page +raise' -- "$cur"))
else
_filedir
fi
} &&
-complete -F _mogrify mogrify
+ complete -F _mogrify mogrify
_display()
{
@@ -171,16 +171,16 @@ _display()
_ImageMagick && return
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") )
- elif [[ "$cur" == +* ]]; then
- COMPREPLY=( $(compgen -W '+compress +contrast +debug +dither +endian
- +gamma +label +map +matte +negate +page +raise +write' -- "$cur") )
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1" -help)' -- "$cur"))
+ elif [[ $cur == +* ]]; then
+ COMPREPLY=($(compgen -W '+compress +contrast +debug +dither +endian
+ +gamma +label +map +matte +negate +page +raise +write' -- "$cur"))
else
_filedir
fi
} &&
-complete -F _display display
+ complete -F _display display
_animate()
{
@@ -189,16 +189,16 @@ _animate()
_ImageMagick && return
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") )
- elif [[ "$cur" == +* ]]; then
- COMPREPLY=( $(compgen -W '+debug +dither +gamma +map +matte' \
- -- "$cur") )
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1" -help)' -- "$cur"))
+ elif [[ $cur == +* ]]; then
+ COMPREPLY=($(compgen -W '+debug +dither +gamma +map +matte' \
+ -- "$cur"))
else
_filedir
fi
} &&
-complete -F _animate animate
+ complete -F _animate animate
_identify()
{
@@ -207,15 +207,15 @@ _identify()
_ImageMagick && return
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") )
- elif [[ "$cur" == +* ]]; then
- COMPREPLY=( $(compgen -W '+debug' -- "$cur") )
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1" -help)' -- "$cur"))
+ elif [[ $cur == +* ]]; then
+ COMPREPLY=($(compgen -W '+debug' -- "$cur"))
else
_filedir
fi
} &&
-complete -F _identify identify
+ complete -F _identify identify
_montage()
{
@@ -224,16 +224,16 @@ _montage()
_ImageMagick && return
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") )
- elif [[ "$cur" == +* ]]; then
- COMPREPLY=( $(compgen -W '+adjoin +compress +debug +dither +endian
- +gamma +label +matte +page' -- "$cur") )
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1" -help)' -- "$cur"))
+ elif [[ $cur == +* ]]; then
+ COMPREPLY=($(compgen -W '+adjoin +compress +debug +dither +endian
+ +gamma +label +matte +page' -- "$cur"))
else
_filedir
fi
} &&
-complete -F _montage montage
+ complete -F _montage montage
_composite()
{
@@ -242,16 +242,16 @@ _composite()
_ImageMagick && return
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") )
- elif [[ "$cur" == +* ]]; then
- COMPREPLY=( $(compgen -W '+compress +debug +dither +endian +label
- +matte +negate +page +write' -- "$cur") )
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1" -help)' -- "$cur"))
+ elif [[ $cur == +* ]]; then
+ COMPREPLY=($(compgen -W '+compress +debug +dither +endian +label
+ +matte +negate +page +write' -- "$cur"))
else
_filedir
fi
} &&
-complete -F _composite composite
+ complete -F _composite composite
_compare()
{
@@ -260,15 +260,15 @@ _compare()
_ImageMagick && return
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") )
- elif [[ "$cur" == +* ]]; then
- COMPREPLY=( $(compgen -W '+debug' -- "$cur") )
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1" -help)' -- "$cur"))
+ elif [[ $cur == +* ]]; then
+ COMPREPLY=($(compgen -W '+debug' -- "$cur"))
else
_filedir
fi
} &&
-complete -F _compare compare
+ complete -F _compare compare
_conjure()
{
@@ -277,15 +277,15 @@ _conjure()
_ImageMagick && return
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") )
- elif [[ "$cur" == +* ]]; then
- COMPREPLY=( $(compgen -W '+debug' -- "$cur") )
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1" -help)' -- "$cur"))
+ elif [[ $cur == +* ]]; then
+ COMPREPLY=($(compgen -W '+debug' -- "$cur"))
else
_filedir
fi
} &&
-complete -F _conjure conjure
+ complete -F _conjure conjure
_import()
{
@@ -294,15 +294,15 @@ _import()
_ImageMagick && return
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") )
- elif [[ "$cur" == +* ]]; then
- COMPREPLY=( $(compgen -W '+debug' -- "$cur") )
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1" -help)' -- "$cur"))
+ elif [[ $cur == +* ]]; then
+ COMPREPLY=($(compgen -W '+debug' -- "$cur"))
else
_filedir
fi
} &&
-complete -F _import import
+ complete -F _import import
_stream()
{
@@ -311,14 +311,14 @@ _stream()
_ImageMagick && return
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") )
- elif [[ "$cur" == +* ]]; then
- COMPREPLY=( $(compgen -W '+debug' -- "$cur") )
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1" -help)' -- "$cur"))
+ elif [[ $cur == +* ]]; then
+ COMPREPLY=($(compgen -W '+debug' -- "$cur"))
else
_filedir
fi
} &&
-complete -F _stream stream
+ complete -F _stream stream
# ex: filetype=sh