-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·31 lines (26 loc) · 842 Bytes
/
install.sh
File metadata and controls
executable file
·31 lines (26 loc) · 842 Bytes
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
#!/bin/sh
set -eu
PACKAGE="allium-cli"
BOLD="\033[1m"
GREEN="\033[32m"
RED="\033[31m"
RESET="\033[0m"
main() {
printf "${BOLD}Installing %s...${RESET}\n" "$PACKAGE"
if command -v uv >/dev/null 2>&1; then
uv tool install "$PACKAGE"
elif command -v pipx >/dev/null 2>&1; then
pipx install "$PACKAGE"
elif command -v pip >/dev/null 2>&1; then
pip install --user "$PACKAGE"
printf "\n${BOLD}Note:${RESET} Ensure ~/.local/bin is on your PATH.\n"
else
printf "${RED}No Python package manager found.${RESET}\n"
printf "Install uv (recommended):\n"
printf " curl -LsSf https://astral.sh/uv/install.sh | sh\n"
exit 1
fi
printf "\n${GREEN}${BOLD}allium-cli installed.${RESET}\n"
printf "Run ${BOLD}allium auth setup${RESET} to get started.\n"
}
main