feat: replace setup with init wizard + interactive config menu

- `unarr init` (alias: `unarr setup`): streamlined 3-step wizard
  (API key, download dir, daemon install). Removed method/name prompts
  — auto-configured from defaults.
- `unarr config [category]`: interactive menu with 7 categories
  (downloads, organization, notifications, device, region, connection,
  advanced). Direct access via `unarr config downloads`, etc.
- Extract shared helpers (openBrowser, expandHome, isTerminal) to
  helpers.go. Delete old setup.go and config.go.
- Update all "unarr setup" references to "unarr init" across daemon,
  doctor, status, README, install scripts.
This commit is contained in:
Deivid Soto 2026-03-29 12:09:03 +02:00
parent 35e5298f23
commit 0b6c6849b1
13 changed files with 541 additions and 248 deletions

View file

@ -204,7 +204,7 @@ install_docker() {
# 2. Run setup (interactive)
docker run -it --rm \
-v ~/.config/unarr:/config \
torrentclaw/unarr setup
torrentclaw/unarr init
# 3. Start daemon
docker run -d --name unarr \
@ -310,7 +310,7 @@ main() {
case "$METHOD" in
binary)
install_binary
printf "\n Run ${BOLD}unarr setup${RESET} to get started.\n\n"
printf "\n Run ${BOLD}unarr init${RESET} to get started.\n\n"
;;
docker)
install_docker
@ -322,7 +322,7 @@ main() {
info "Installing via Homebrew..."
brew install torrentclaw/tap/unarr
ok "Installed via Homebrew"
printf "\n Run ${BOLD}unarr setup${RESET} to get started.\n\n"
printf "\n Run ${BOLD}unarr init${RESET} to get started.\n\n"
;;
*)
error "Unknown method: $METHOD"