feat(cli): add login command and refactor shared helpers

This commit is contained in:
Deivid Soto 2026-04-01 12:20:51 +02:00
parent 0dafeaa70d
commit 4d35e197f0
8 changed files with 296 additions and 49 deletions

View file

@ -360,18 +360,8 @@ func runInit(apiURLOverride string) error {
fmt.Println()
// Features summary
features := []string{}
if resp.Features.Torrent {
features = append(features, "Torrent")
}
if resp.Features.Debrid {
features = append(features, "Debrid")
}
if resp.Features.Usenet {
features = append(features, "Usenet")
}
if len(features) > 0 {
cyan.Printf(" Available: %s\n", strings.Join(features, ", "))
if line := formatFeatures(resp.Features); line != "" {
cyan.Printf(" Available: %s\n", line)
}
if !installDaemon {