feat(cli): add login command and refactor shared helpers
This commit is contained in:
parent
0dafeaa70d
commit
4d35e197f0
8 changed files with 296 additions and 49 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue