Skip to content

Commit

Permalink
user: adjust user list
Browse files Browse the repository at this point in the history
  • Loading branch information
sj14 committed Apr 29, 2024
1 parent 7e0dbc8 commit ebb34e6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,14 @@ func (c *Controller) UserList() (*http.Response, error) {
return resp, err
}

fmt.Printf("ID\t\t\t\t\tAdmin\tHidden\tDisabled\tLast Active\tName\n")
fmt.Println("-----------------------------------|----------|-------|-------|---------------------|------")
fmt.Printf("ID Admin Disabled Last Active Name\n")
fmt.Printf("---------------------------------|-------|------|---------------------|------\n")
for _, user := range users {
fmt.Printf("%s\t%t\t%t\t%t\t%s\t%s\n",
fmt.Printf("%s %t\t %t\t %s %s\n",
user.GetId(),
user.Policy.Get().GetIsAdministrator(),
user.Policy.Get().GetIsHidden(),
user.Policy.Get().GetIsDisabled(),
user.GetLastActivityDate().Local().Format(time.DateTime),
//time.Since(user.GetLastActivityDate()).Round(1*time.Minute),
user.GetName(),
)
}
Expand Down

0 comments on commit ebb34e6

Please sign in to comment.