From 8928c5a60a06da00a0375693d2ae49137e98229f Mon Sep 17 00:00:00 2001 From: Sunny Date: Thu, 21 Sep 2017 01:18:27 +0530 Subject: [PATCH] command/state-rm: tell the user how many items were removed --- command/state_rm.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command/state_rm.go b/command/state_rm.go index e106afb810..53bb50d01f 100644 --- a/command/state_rm.go +++ b/command/state_rm.go @@ -52,6 +52,8 @@ func (c *StateRmCommand) Run(args []string) int { return 1 } + c.Ui.Output(fmt.Sprintf("%d items removed.", len(args))) + if err := state.WriteState(stateReal); err != nil { c.Ui.Error(fmt.Sprintf(errStateRmPersist, err)) return 1