State Clean
This is like
rm -rf.
This kind of command applies the clean state over the current state.
This generally requires what is stored in states_current.yaml to match the newly discovered current state.
The only suitable scope for this command is SingleProfileSingleFlow.
Command Creation
To create this command:
-
When building the command context:
- Provide the profile.
- Provide the flow ID.
-
Call the
CleanCmd.This will call
CleanOpSpec::execfor each item, beginning from the last item, until the first item.