this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add flag to print invite tree handles (#251)

Adds a flag `--print-handles` to print handles in an invite tree

authored by

Whyrusleeping and committed by
GitHub
bf1ab30c e0ab2696

+16 -4
+16 -4
cmd/gosky/admin.go
··· 521 521 Usage: "additionally disable invites for all printed DIDs", 522 522 }, 523 523 &cli.BoolFlag{ 524 + Name: "print-handles", 525 + Usage: "print handle for each DID", 526 + }, 527 + &cli.BoolFlag{ 524 528 Name: "print-emails", 529 + Usage: "print account email for each DID", 525 530 }, 526 531 }, 527 532 ArgsUsage: `[handle]`, ··· 568 573 } 569 574 fmt.Print(next) 570 575 576 + if cctx.Bool("print-handles") { 577 + if rep.Handle != "" { 578 + fmt.Print(" ", rep.Handle) 579 + } else { 580 + fmt.Print(" NO HANDLE") 581 + } 582 + } 583 + 571 584 if cctx.Bool("print-emails") { 572 585 if rep.Email != nil { 573 - fmt.Println(" ", *rep.Email) 586 + fmt.Print(" ", *rep.Email) 574 587 } else { 575 - fmt.Println(" NO EMAIL") 588 + fmt.Print(" NO EMAIL") 576 589 } 577 - } else { 578 - fmt.Println() 579 590 } 591 + fmt.Println() 580 592 581 593 for _, inv := range rep.Invites { 582 594 for _, u := range inv.Uses {