mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-26 06:46:13 +01:00
add completion support for osc search
This commit is contained in:
parent
d0af05c108
commit
eac23410b5
9
dist/osc.complete
vendored
9
dist/osc.complete
vendored
@ -330,6 +330,15 @@ help)
|
||||
fi
|
||||
((count == 2)) && builtin compgen -W "$(builtin echo ${osccmds[@]})" -- "${cmdline[2]}"
|
||||
;;
|
||||
search)
|
||||
if ((count == 1)) ; then
|
||||
builtin compgen -W 'search' -- "${cmdline[1]}"
|
||||
else
|
||||
oscsearch="--help --csv -i --involved -v --verbose --description --title \
|
||||
--project --package -e --exact --repos-baseurl"
|
||||
builtin compgen -W "${oscsearch}" -- "${cmdline[$count]}"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
((count == 1)) && builtin compgen -W "$(builtin echo ${osccmds[@]})" -- "${cmdline[1]}"
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user