mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-04 18:46:17 +01:00
add maintainer support for completion
This commit is contained in:
parent
8f10292166
commit
d0af05c108
12
dist/osc.complete
vendored
12
dist/osc.complete
vendored
@ -273,6 +273,18 @@ co|checkout)
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
maintainer)
|
||||||
|
if ((count == 1)) ; then
|
||||||
|
builtin compgen -W 'maintainer' -- "${cmdline[1]}"
|
||||||
|
else
|
||||||
|
if ((count == 2)) ; then
|
||||||
|
builtin compgen -W "$(command cat ~/.osc.projects)" -- "${cmdline[2]}"
|
||||||
|
fi
|
||||||
|
if ((count == 3)) ; then
|
||||||
|
builtin compgen -W "$(command osc ls "${cmdline[2]}")" -- "${cmdline[3]}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
;;
|
||||||
up|update)
|
up|update)
|
||||||
if ((count == 1)) ; then
|
if ((count == 1)) ; then
|
||||||
builtin compgen -W 'up update' -- "${cmdline[1]}"
|
builtin compgen -W 'up update' -- "${cmdline[1]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user