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

This commit is contained in:
Sunny 2017-09-21 01:18:27 +05:30 committed by Martin Atkins
parent 4daf624459
commit 8928c5a60a
1 changed files with 2 additions and 0 deletions

View File

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