From 6025a47e3b0d521f5f04ba9d290d32b3f0b0feb1 Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Sat, 7 Mar 2020 12:04:24 +0100 Subject: [PATCH] Add output info when adding tickets --- cmd/add.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/add.go b/cmd/add.go index e72079b..53c6e39 100644 --- a/cmd/add.go +++ b/cmd/add.go @@ -137,6 +137,7 @@ func grepAddCmdF(cmd *cobra.Command, _ []string) { if err := campaign.Save(cmp); err != nil { ErrorAndExit(cmd, err) } + cmd.Printf("%d tickets have been added\n", len(tickets)) } func agAddCmdF(_ *cobra.Command, _ []string) error { @@ -176,4 +177,5 @@ func csvAddCmdF(cmd *cobra.Command, args []string) { if err := campaign.Save(cmp); err != nil { ErrorAndExit(cmd, err) } + cmd.Printf("%d tickets have been added\n", len(records[1:])) }