feat: add bundle install and uninstall scripts

This commit is contained in:
叶林立
2026-08-18 20:34:03 +08:00
parent 78ce5bfb0c
commit a690d147d1
6 changed files with 218 additions and 6 deletions
Executable
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
set -u
PACKAGE_SOURCE=${PI_PACKAGE_SOURCE:-git:git@bitbucket.org:siakitem/my-pi.git}
if ! command -v pi >/dev/null 2>&1; then
printf '错误: 找不到 pi,无法卸载组合包。请确保 pi 位于 PATH。\n' >&2
exit 127
fi
printf '正在从 Pi 中移除组合包:%s\n' "$PACKAGE_SOURCE"
pi remove "$PACKAGE_SOURCE"
printf '%s\n' '组合包已移除。CodeGraph、Kotlin LSP、JDT LS 和 Java 均未卸载,因为它们可能仍被其他项目使用。'