command/state-rm: tell the user how many items were removed

pull/19823/head
Sunny 9 years ago committed by Martin Atkins
parent 4daf624459
commit 8928c5a60a

@ -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

Loading…
Cancel
Save