-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·43 lines (36 loc) · 906 Bytes
/
install.sh
File metadata and controls
executable file
·43 lines (36 loc) · 906 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
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$ROOT_DIR"
if ! command -v cargo >/dev/null 2>&1; then
echo "error: cargo is required but was not found in PATH" >&2
exit 1
fi
CONFIG_PATH="${1:-}"
FORCE_FLAG="${2:-}"
echo "Installing houseofagents..."
cargo install --path .
INIT_ARGS=("--init-config")
if [[ -n "$CONFIG_PATH" ]]; then
INIT_ARGS+=("--config" "$CONFIG_PATH")
fi
if [[ "$FORCE_FLAG" == "--force" ]]; then
INIT_ARGS+=("--force")
fi
echo "Initializing config..."
cargo run -- "${INIT_ARGS[@]}"
echo
echo "Install complete."
echo "Run: houseofagents"
if [[ -n "$CONFIG_PATH" ]]; then
echo "Or: houseofagents --config $CONFIG_PATH"
fi
echo
echo "Optional CLI mode tools:"
for bin in claude codex gemini; do
if command -v "$bin" >/dev/null 2>&1; then
echo " - $bin: found"
else
echo " - $bin: not found"
fi
done