001package co.codewizards.cloudstore.client;
002
003import co.codewizards.cloudstore.local.RepairDatabase;
004
005/**
006 * {@link SubCommand} implementation for repairing a database.
007 *
008 * @author Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de
009 */
010public class RepairDatabaseSubCommand extends SubCommandWithExistingLocalRepo
011{
012        public RepairDatabaseSubCommand() { }
013
014        @Override
015        public String getSubCommandDescription() {
016                return "Check and repair the Derby database.";
017        }
018
019        @Override
020        public void run() throws Exception {
021                new RepairDatabase(localRoot).run();
022                new RepoInfoSubCommand(localRoot).run();
023        }
024}