command/state-rm: tell the user how many items were removed
This commit is contained in:
parent
4daf624459
commit
8928c5a60a
|
@ -52,6 +52,8 @@ func (c *StateRmCommand) Run(args []string) int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c.Ui.Output(fmt.Sprintf("%d items removed.", len(args)))
|
||||||
|
|
||||||
if err := state.WriteState(stateReal); err != nil {
|
if err := state.WriteState(stateReal); err != nil {
|
||||||
c.Ui.Error(fmt.Sprintf(errStateRmPersist, err))
|
c.Ui.Error(fmt.Sprintf(errStateRmPersist, err))
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Reference in New Issue