mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-08 07:54:16 +00:00
adding "remove" option for #47 and fix a few issues/bugs
This commit is contained in:
@@ -38,6 +38,7 @@ _dotdrop.sh ()
|
||||
'import'
|
||||
'compare'
|
||||
'update'
|
||||
'remove'
|
||||
'listfiles'
|
||||
'detail'
|
||||
'list'
|
||||
@@ -59,6 +60,9 @@ _dotdrop.sh ()
|
||||
update)
|
||||
_dotdrop.sh-update
|
||||
;;
|
||||
remove)
|
||||
_dotdrop.sh-remove
|
||||
;;
|
||||
listfiles)
|
||||
_dotdrop.sh-listfiles
|
||||
;;
|
||||
@@ -97,7 +101,7 @@ _dotdrop.sh-install ()
|
||||
'(-D)-D' \
|
||||
'(--showdiff)--showdiff' \
|
||||
'(-a)-a' \
|
||||
'(--force-action)--force-action' \
|
||||
'(--force-actions)--force-actions' \
|
||||
'(-c=-)-c=-' \
|
||||
'(--cfg=-)--cfg=-' \
|
||||
'(-p=-)-p=-' \
|
||||
@@ -193,6 +197,35 @@ _dotdrop.sh-update ()
|
||||
fi
|
||||
}
|
||||
|
||||
_dotdrop.sh-remove ()
|
||||
{
|
||||
local context state state_descr line
|
||||
typeset -A opt_args
|
||||
|
||||
if [[ $words[$CURRENT] == -* ]] ; then
|
||||
_arguments -C \
|
||||
':command:->command' \
|
||||
'(-V)-V' \
|
||||
'(--verbose)--verbose' \
|
||||
'(-b)-b' \
|
||||
'(--no-banner)--no-banner' \
|
||||
'(-f)-f' \
|
||||
'(--force)--force' \
|
||||
'(-d)-d' \
|
||||
'(--dry)--dry' \
|
||||
'(-k)-k' \
|
||||
'(--key)--key' \
|
||||
'(-c=-)-c=-' \
|
||||
'(--cfg=-)--cfg=-' \
|
||||
'(-p=-)-p=-' \
|
||||
'(--profile=-)--profile=-' \
|
||||
|
||||
else
|
||||
myargs=('<path>')
|
||||
_message_next_arg
|
||||
fi
|
||||
}
|
||||
|
||||
_dotdrop.sh-listfiles ()
|
||||
{
|
||||
local context state state_descr line
|
||||
|
||||
Reference in New Issue
Block a user