mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-22 07:48:52 -05:00
Improved compspec for -exec
This commit is contained in:
parent
212e27f866
commit
8e446625f2
@ -123,17 +123,17 @@ function _picocli_filebot() {
|
|||||||
;;
|
;;
|
||||||
--filter)
|
--filter)
|
||||||
compopt -o filenames
|
compopt -o filenames
|
||||||
COMPREPLY=( $( compgen -X '!*.groovy' -f -- ${CURR_WORD} ) ) # files
|
COMPREPLY=( $( compgen -X '!*.groovy' -f -- ${CURR_WORD} ) ) # *.groovy files
|
||||||
return $?
|
return $?
|
||||||
;;
|
;;
|
||||||
--mapper)
|
--mapper)
|
||||||
compopt -o filenames
|
compopt -o filenames
|
||||||
COMPREPLY=( $( compgen -X '!*.groovy' -f -- ${CURR_WORD} ) ) # files
|
COMPREPLY=( $( compgen -X '!*.groovy' -f -- ${CURR_WORD} ) ) # *.groovy files
|
||||||
return $?
|
return $?
|
||||||
;;
|
;;
|
||||||
--format)
|
--format)
|
||||||
compopt -o filenames
|
compopt -o filenames
|
||||||
COMPREPLY=( $( compgen -X '!*.groovy' -f -- ${CURR_WORD} ) ) # files
|
COMPREPLY=( $( compgen -X '!*.groovy' -f -- ${CURR_WORD} ) ) # *.groovy files
|
||||||
return $?
|
return $?
|
||||||
;;
|
;;
|
||||||
--q)
|
--q)
|
||||||
@ -145,7 +145,7 @@ function _picocli_filebot() {
|
|||||||
;;
|
;;
|
||||||
--output)
|
--output)
|
||||||
compopt -o dirnames
|
compopt -o dirnames
|
||||||
COMPREPLY=( $( compgen -d -- ${CURR_WORD} ) ) # files
|
COMPREPLY=( $( compgen -d -- ${CURR_WORD} ) ) # directories
|
||||||
return $?
|
return $?
|
||||||
;;
|
;;
|
||||||
--encoding)
|
--encoding)
|
||||||
@ -154,7 +154,7 @@ function _picocli_filebot() {
|
|||||||
;;
|
;;
|
||||||
-script)
|
-script)
|
||||||
compopt -o filenames
|
compopt -o filenames
|
||||||
COMPREPLY=( $( compgen -X '!*.groovy' -f -- ${CURR_WORD} ) ) # files
|
COMPREPLY=( $( compgen -X '!*.groovy' -f -- ${CURR_WORD} ) ) # *.groovy files
|
||||||
return $?
|
return $?
|
||||||
;;
|
;;
|
||||||
--def)
|
--def)
|
||||||
@ -163,10 +163,11 @@ function _picocli_filebot() {
|
|||||||
;;
|
;;
|
||||||
--file-filter)
|
--file-filter)
|
||||||
compopt -o filenames
|
compopt -o filenames
|
||||||
COMPREPLY=( $( compgen -X '!*.groovy' -f -- ${CURR_WORD} ) ) # files
|
COMPREPLY=( $( compgen -X '!*.groovy' -f -- ${CURR_WORD} ) ) # *.groovy files
|
||||||
return $?
|
return $?
|
||||||
;;
|
;;
|
||||||
-exec)
|
-exec)
|
||||||
|
COMPREPLY=( $( compgen -c -- ${CURR_WORD} ) ) # commands
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
--log)
|
--log)
|
||||||
@ -180,7 +181,7 @@ function _picocli_filebot() {
|
|||||||
;;
|
;;
|
||||||
--license)
|
--license)
|
||||||
compopt -o filenames
|
compopt -o filenames
|
||||||
COMPREPLY=( $( compgen -X '!*.psm' -f -- ${CURR_WORD} ) ) # files
|
COMPREPLY=( $( compgen -X '!*.psm' -f -- ${CURR_WORD} ) ) # *.psm files
|
||||||
return $?
|
return $?
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user