Implemented a repair command

Implements CMDBOOK-2311