-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathuninstall.sh
More file actions
executable file
·51 lines (44 loc) · 1.2 KB
/
Copy pathuninstall.sh
File metadata and controls
executable file
·51 lines (44 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
set -e
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
echo_info() {
echo -e "${GREEN}[INFO]${NC} $1"
}
echo_warn() {
echo -e "${YELLOW}[WARN]${NC} $1"
}
# Uninstall the global tool
if dotnet tool list --global 2>/dev/null | grep -qi "trelloCli\|TrelloCli"; then
echo_info "Uninstalling trello-cli global tool..."
dotnet tool uninstall --global TrelloCli
else
echo_warn "trello-cli global tool not found"
fi
# Remove Claude Code skills
CLAUDE_SKILLS_DIR="$HOME/.claude/skills/trello-cli"
if [ -d "$CLAUDE_SKILLS_DIR" ]; then
echo_info "Removing Claude Code skills..."
rm -rf "$CLAUDE_SKILLS_DIR"
echo_info "Skills removed from $CLAUDE_SKILLS_DIR"
else
echo_warn "Claude Code skills not found at $CLAUDE_SKILLS_DIR"
fi
# Remove config (optional - ask user)
CONFIG_DIR="$HOME/.trello-cli"
if [ -d "$CONFIG_DIR" ]; then
echo ""
read -p "Remove trello-cli config at $CONFIG_DIR? (y/N) " -n 1 -r
echo ""
if [[ $REPLY =~ ^[Yy]$ ]]; then
rm -rf "$CONFIG_DIR"
echo_info "Config removed"
else
echo_info "Config preserved at $CONFIG_DIR"
fi
fi
echo ""
echo_info "Uninstall complete!"