From 94e45c34664c9d8e406072e38319c1d16d26c087 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Sat, 26 Jan 2019 17:28:35 +0100 Subject: [PATCH] add output when creating users using CLI (#10140) * add output when creating users using CLI * update per feedback * update per feedback 2 --- cmd/mattermost/commands/user.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cmd/mattermost/commands/user.go b/cmd/mattermost/commands/user.go index 9f09cb5276..71692c73b2 100644 --- a/cmd/mattermost/commands/user.go +++ b/cmd/mattermost/commands/user.go @@ -356,7 +356,14 @@ func userCreateCmdF(command *cobra.Command, args []string) error { } } - CommandPrettyPrintln("Created User") + CommandPrettyPrintln("id: " + ruser.Id) + CommandPrettyPrintln("username: " + ruser.Username) + CommandPrettyPrintln("nickname: " + ruser.Nickname) + CommandPrettyPrintln("position: " + ruser.Position) + CommandPrettyPrintln("first_name: " + ruser.FirstName) + CommandPrettyPrintln("last_name: " + ruser.LastName) + CommandPrettyPrintln("email: " + ruser.Email) + CommandPrettyPrintln("auth_service: " + ruser.AuthService) return nil }