diff options
Diffstat (limited to 'commands/user.go')
-rw-r--r-- | commands/user.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/user.go b/commands/user.go index 5cf40cf0..2888e131 100644 --- a/commands/user.go +++ b/commands/user.go @@ -41,6 +41,8 @@ func runUser(cmd *cobra.Command, args []string) error { switch userFieldsQuery { case "email": fmt.Printf("%s\n", id.Email()) + case "login": + fmt.Printf("%s\n", id.Login()) case "humanId": fmt.Printf("%s\n", id.Id().Human()) case "id": @@ -67,6 +69,7 @@ func runUser(cmd *cobra.Command, args []string) error { fmt.Printf("Id: %s\n", id.Id()) fmt.Printf("Name: %s\n", id.Name()) fmt.Printf("Email: %s\n", id.Email()) + fmt.Printf("Login: %s\n", id.Login()) fmt.Printf("Last modification: %s (lamport %d)\n", id.LastModification().Time().Format("Mon Jan 2 15:04:05 2006 +0200"), id.LastModificationLamport()) |