Skip to content

Commit 93249bc

Browse files
committed
find: show the contacts userId, but not id
1 parent ff3ec69 commit 93249bc

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

cmd/contacts.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,16 @@ var contactsFindCmd = &cobra.Command{
5555
}
5656

5757
w := newTableWriter(cmd.OutOrStdout())
58-
fmt.Fprintln(w, "ID\tEMAIL\tFIRST NAME\tLAST NAME\tSUBSCRIBED\tSOURCE\tUSER GROUP\tUSER ID\tOPT-IN STATUS")
58+
fmt.Fprintln(w, "USER ID\tEMAIL\tFIRST NAME\tLAST NAME\tSUBSCRIBED\tSOURCE\tUSER GROUP\tOPT-IN STATUS")
5959
for _, c := range contacts {
60-
fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n",
61-
c.ID,
60+
fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n",
61+
deref(c.UserID),
6262
c.Email,
6363
deref(c.FirstName),
6464
deref(c.LastName),
6565
strconv.FormatBool(c.Subscribed),
6666
c.Source,
6767
c.UserGroup,
68-
deref(c.UserID),
6968
deref(c.OptInStatus),
7069
)
7170
}

0 commit comments

Comments
 (0)