From 146afedd51eeb7d63c967b80303b1b60058480fd Mon Sep 17 00:00:00 2001 From: Arianna Vespri <36129782+vesari@users.noreply.github.com> Date: Thu, 27 Feb 2020 15:15:21 +0100 Subject: [PATCH] Add output indicating success for restore channel command (#13802) Co-authored-by: mattermod --- cmd/mattermost/commands/channel.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/mattermost/commands/channel.go b/cmd/mattermost/commands/channel.go index cd8e428912..f7eef14bf5 100644 --- a/cmd/mattermost/commands/channel.go +++ b/cmd/mattermost/commands/channel.go @@ -482,6 +482,11 @@ func restoreChannelsCmdF(command *cobra.Command, args []string) error { } } + suffix := "" + if len(channels) > 1 { + suffix = "s" + } + CommandPrintln("Successfully restored channel" + suffix) return nil }