Add bash completion script.
2 COMPREPLY=($(compgen -W "list-requires list-provides list-files list-file-packages what-requires what-provides import-yum import-rpmdb validate update diff" -- $1))
6 COMPREPLY=($(compgen -W "$(./razor list)" -- $1))
10 COMPREPLY=($(compgen -W "$(./razor list-files)" -- $1))
15 COMPREPLY=($(compgen -W "$(./razor list-requires)" -- $1))
19 COMPREPLY=($(compgen -W "$(./razor list-provides)" -- $1))
23 local cur="${COMP_WORDS[COMP_CWORD]}"
25 if [ $COMP_CWORD = 1 ]; then
28 case "${COMP_WORDS[1]}" in
29 list-requires|list-provides) __razor_packages $cur ;;
30 list-files|list-file-packages) __razor_files $cur ;;
31 what-requires) __razor_requires $cur ;;
32 what-provides) __razor_provides $cur ;;
37 complete -F __razor razor