mirror of
https://github.com/zplug/zplug
synced 2025-04-21 00:37:57 +02:00
31 lines
536 B
Bash
31 lines
536 B
Bash
#!/usr/bin/env zsh
|
|
|
|
local arg="$1"
|
|
|
|
case "$arg" in
|
|
-* | --*)
|
|
__zplug::core::options::parse "$argv[@]"
|
|
;;
|
|
|
|
check | install | update | list | clean | status | clear | load | info)
|
|
shift
|
|
__zplug::core::core::run_interfaces \
|
|
"$arg" \
|
|
"$argv[@]"
|
|
;;
|
|
|
|
*/*)
|
|
__zplug::core::add::to_zplugs "$argv[@]"
|
|
;;
|
|
|
|
"")
|
|
__zplug::core::arguments::none
|
|
;;
|
|
|
|
*)
|
|
__zplug::core::arguments::exec "$argv[@]"
|
|
;;
|
|
esac
|
|
|
|
return $status
|