summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-12-07 10:24:28 -0500
committerenahum <nahumhbl@gmail.com>2016-12-07 12:24:28 -0300
commit9b96fcc7c61075d1e5ec2d9ab5b720f7c9fdab2d (patch)
treecf5e6663f741dab3fa2267d35aa29c800529d735 /cmd
parent472a86406061cfda017fe7a562535570ee69beba (diff)
downloadchat-9b96fcc7c61075d1e5ec2d9ab5b720f7c9fdab2d.tar.gz
chat-9b96fcc7c61075d1e5ec2d9ab5b720f7c9fdab2d.tar.bz2
chat-9b96fcc7c61075d1e5ec2d9ab5b720f7c9fdab2d.zip
Fixing reset command (#4732)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/platform/mattermost.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/platform/mattermost.go b/cmd/platform/mattermost.go
index d8210b012..b5224c403 100644
--- a/cmd/platform/mattermost.go
+++ b/cmd/platform/mattermost.go
@@ -61,6 +61,8 @@ var resetCmd = &cobra.Command{
}
func resetCmdF(cmd *cobra.Command, args []string) error {
+ initDBCommandContextCobra(cmd)
+
confirmFlag, _ := cmd.Flags().GetBool("confirm")
if !confirmFlag {
var confirm string