prole/installer/scripts/install_prole_krew.sh
chrisfu 120c9c2567 feat(installer): unified welcome flow, reliable footer gating; externalize install scripts; add Ollama; centralize canvas helpers
- Startup/UI: open main window with background; run dependency check on-canvas; hide footer during scan; reveal Next after debounce; add 600ms refresh and 9s failsafe; fixed background image replacement without clearing content.

- Canvas helpers: route all canvas calls via installer/screen.py; consistent status drawing.

- Installer script externalization: per-dependency templates + validator; compose install_dependencies.sh.

- Dependencies: add Ollama and template; install order: brew → ollama → k3d → kubectl → helm → krew → cmctl → plugins.

- Cleanup: removed deprecated splash and unused code paths.
2025-12-04 14:01:28 -08:00

18 lines
436 B
Bash

#!/bin/bash
# Prole Installer: krew (kubectl plugin manager)
# Installs krew via Homebrew if kubectl krew is unavailable
set -euo pipefail
echo "[prole] Checking kubectl krew..."
if ! kubectl krew version >/dev/null 2>&1; then
echo "[prole] Installing krew via brew..."
brew install krew
echo "[prole] Updating krew index..."
kubectl krew update || true
else
echo "[prole] krew already installed"
fi
echo "[prole] krew OK"