INNER CODE UNIT · Go

renderBasicAccount

dropbox/dbxcli · cmd/account.go:96

func renderBasicAccount(out io.Writer, ba *users.BasicAccount, auth *accountAuth) error {
	w := new(tabwriter.Writer)
	w.Init(out, 4, 8, 1, ' ', 0)

	fmt.Fprintf(w, "Name:\t%s\n", ba.Name.DisplayName)
	email := ba.Email
	if !ba.EmailVerified {
		email += " (unverified)"
	}
	fmt.Fprintf(w, "Email:\t%s\n", email)
	fmt.Fprintf(w, "Is Teammate:\t%t\n", ba.IsTeammate)
	if ba.TeamMemberId != "" {
		fmt.Fprintf(w, "Team Member Id:\t%s\n", ba.TeamMemberId)
	}
	if ba.ProfilePhotoUrl != "" {
		fmt.Fprintf(w, "Profile Photo URL:\t%s\n", ba.ProfilePhotoUrl)
	}
	renderAccountAuth(w, auth)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…