1 # bash completion for createrepo and friends
8 --version|-h|--help|-u|--baseurl|--distro|--content|--repo|--workers|\
9 --revision|-x|--excludes|--changelog-limit|--max-delta-rpm-size)
12 --basedir|-c|--cachedir|--update-md-path|-o|--outputdir|\
14 COMPREPLY=( $( compgen -d -- "$2" ) )
18 COMPREPLY=( $( compgen -f -o plusdirs -X '!*.xml' -- "$2" ) )
22 COMPREPLY=( $( compgen -W 'md5 sha1 sha256 sha512' -- "$2" ) )
25 -i|--pkglist|--read-pkgs-list)
26 COMPREPLY=( $( compgen -f -o plusdirs -- "$2" ) )
30 COMPREPLY=( $( compgen -f -o plusdirs -X '!*.rpm' -- "$2" ) )
34 COMPREPLY=( $( compgen -W '1 2 3 4 5 6 7 8 9' -- "$2" ) )
39 if [[ $2 == -* ]] ; then
40 COMPREPLY=( $( compgen -W '--version --help --quiet --verbose --profile
41 --excludes --basedir --baseurl --groupfile --checksum --pretty
42 --cachedir --checkts --no-database --update --update-md-path
43 --skip-stat --split --pkglist --includepkg --outputdir
44 --skip-symlinks --changelog-limit --unique-md-filenames
45 --simple-md-filenames --distro --content --repo --revision --deltas
46 --oldpackagedirs --num-deltas --read-pkgs-list
47 --max-delta-rpm-size --workers' -- "$2" ) )
49 COMPREPLY=( $( compgen -d -- "$2" ) )
52 complete -F _cr_createrepo -o filenames createrepo genpkgmetadata.py
59 --version|-h|--help|-a|--archlist)
62 -r|--repo|-o|--outputdir)
63 COMPREPLY=( $( compgen -d -- "$2" ) )
68 COMPREPLY=( $( compgen -W '--version --help --repo --archlist --no-database
69 --outputdir --nogroups --noupdateinfo' -- "$2" ) )
71 complete -F _cr_mergerepo -o filenames mergerepo mergerepo.py
78 --version|-h|--help|--mdtype)
83 if [[ $2 == -* ]] ; then
84 COMPREPLY=( $( compgen -W '--version --help --mdtype' -- "$2" ) )
89 for (( i=1; i < ${#COMP_WORDS[@]}-1; i++ )) ; do
90 if [[ ${COMP_WORDS[i]} != -* &&
91 ${COMP_WORDS[i-1]} != @(=|--mdtype) ]]; then
92 argnum=$(( argnum+1 ))
98 COMPREPLY=( $( compgen -f -o plusdirs -- "$2" ) )
102 COMPREPLY=( $( compgen -d -- "$2" ) )
107 complete -F _cr_modifyrepo -o filenames modifyrepo modifyrepo.py
112 # sh-indent-comment: t
113 # indent-tabs-mode: nil
115 # ex: ts=4 sw=4 et filetype=sh