1
0
mirror of https://github.com/zplug/zplug synced 2025-04-05 23:29:10 +02:00
zplug/autoload/options/__rollback__
2016-12-11 16:31:24 +09:00

32 lines
658 B
Bash

#!/usr/bin/env zsh
# Description:
# Rollback a failed package
local arg
while (( $# > 0 ))
do
arg="$1"
case "$arg" in
build)
__zplug::job::rollback::build
return $status
;;
"")
__zplug::io::print::f \
--die \
--zplug \
"argument is required\n"
return $_zplug_status[failure]
;;
*)
__zplug::io::print::f \
--die \
--zplug \
"$arg: no such rollback operation\n"
return $_zplug_status[failure]
;;
esac
shift
done