-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·74 lines (56 loc) · 1.5 KB
/
install.sh
File metadata and controls
executable file
·74 lines (56 loc) · 1.5 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
# install.sh - Dependency checker for diff-feedback plugin
set -e
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
info() {
echo -e "${BLUE}$1${NC}"
}
success() {
echo -e "${GREEN}✓${NC} $1"
}
warn() {
echo -e "${YELLOW}Warning:${NC} $1"
}
error() {
echo -e "${RED}Error:${NC} $1" >&2
exit 1
}
# ============================================================================
# VALIDATION
# ============================================================================
validate_environment() {
# Check required commands
if ! command -v git >/dev/null; then
error "git is required but not installed"
fi
if ! command -v nvim >/dev/null; then
warn "nvim not found. Install with: brew install neovim"
fi
if [ ! -d "/Applications/WezTerm.app" ]; then
warn "WezTerm not found. Install from: https://wezfurlong.org/wezterm/"
fi
if ! command -v delta >/dev/null; then
warn "delta not found (optional). Install with: brew install git-delta"
fi
}
# ============================================================================
# MAIN
# ============================================================================
main() {
echo ""
info "Diff Feedback Plugin - Dependency Check"
echo ""
validate_environment
echo ""
success "All dependencies verified! ✓"
echo ""
info "To install the plugin, run:"
echo " claude plugin install diff-feedback@github.com/Ginger-Labs/diff-feedback"
echo ""
}
main "$@"