MCPcopy Create free account
hub / github.com/dropbox/dbxcli / renderTeamGroups

Function renderTeamGroups

cmd/list-groups.go:64–76  ·  view source on GitHub ↗
(out io.Writer, groups []*team_common.GroupSummary)

Source from the content-addressed store, hash-verified

62}
63
64func renderTeamGroups(out io.Writer, groups []*team_common.GroupSummary) error {
65 if len(groups) == 0 {
66 return nil
67 }
68
69 w := new(tabwriter.Writer)
70 w.Init(out, 4, 8, 1, ' ', 0)
71 fmt.Fprintf(w, "Name\tId\t# Members\tExternal Id\n")
72 for _, group := range groups {
73 fmt.Fprintf(w, "%s\t%s\t%d\t%s\n", group.GroupName, group.GroupId, group.MemberCount, group.GroupExternalId)
74 }
75 return w.Flush()
76}
77
78// listGroupsCmd represents the list-groups command
79var listGroupsCmd = &cobra.Command{

Callers 1

listGroupsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected