Add output info when adding tickets

This commit is contained in:
Miguel de la Cruz 2020-03-07 12:04:24 +01:00
parent 0da2b09feb
commit 6025a47e3b

View file

@ -137,6 +137,7 @@ func grepAddCmdF(cmd *cobra.Command, _ []string) {
if err := campaign.Save(cmp); err != nil { if err := campaign.Save(cmp); err != nil {
ErrorAndExit(cmd, err) ErrorAndExit(cmd, err)
} }
cmd.Printf("%d tickets have been added\n", len(tickets))
} }
func agAddCmdF(_ *cobra.Command, _ []string) error { func agAddCmdF(_ *cobra.Command, _ []string) error {
@ -176,4 +177,5 @@ func csvAddCmdF(cmd *cobra.Command, args []string) {
if err := campaign.Save(cmp); err != nil { if err := campaign.Save(cmp); err != nil {
ErrorAndExit(cmd, err) ErrorAndExit(cmd, err)
} }
cmd.Printf("%d tickets have been added\n", len(records[1:]))
} }