mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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
|
||||
}
|
||||
|
||||
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…
Reference in New Issue
Block a user