summaryrefslogtreecommitdiff
path: root/src/xi.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-15 09:53:27 +0000
committerdavidovski <david@davidovski.xyz>2022-03-15 09:53:27 +0000
commiteac3c122678d19e090742d01e348d800d358733a (patch)
treeeeb026a5ec6a32a69d02f6999e441f7d667422a6 /src/xi.sh
parent0c0496130f64b4ebe051172af86c0c332db9d5e9 (diff)
refactoringrefactoringrefactoring
Diffstat (limited to 'src/xi.sh')
-rwxr-xr-xsrc/xi.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/xi.sh b/src/xi.sh
index 39581e9..6cbb315 100755
--- a/src/xi.sh
+++ b/src/xi.sh
@@ -34,6 +34,8 @@ Available Commands:
update all packages on the system
remove [packages...]
remove packages from the system
+ reinstall [packages..]
+ remove and reinstall package(s) into the system
fetch [package]
download a .xipkg file
keyimport [name] [url]
@@ -116,6 +118,7 @@ done
. ${LIBDIR}/sync.sh
. ${LIBDIR}/install.sh
. ${LIBDIR}/get.sh
+. ${LIBDIR}/remove.sh
shift $((OPTIND-1))
@@ -143,9 +146,12 @@ else
;;
"remove")
shift
- . ${LIBDIR}/remove.sh
remove $@
;;
+ "reinstall")
+ shift
+ reinstall $@
+ ;;
"files")
shift
files $@