import CommanderCommand               from '../CommanderCommand.js';
import SettingsApiCommand             from './subcommands/SettingsApiCommand';
import SettingsInteractiveModeCommand from './subcommands/SettingsInteractiveModeCommand';


class SettingsCommand extends CommanderCommand {
    protected commandName: string = 'settings';

    protected defineCommand() {
        this.command
            .description('manage Dojo settings');
    }

    protected defineSubCommands() {
        SettingsApiCommand.registerOnCommand(this.command);
        SettingsInteractiveModeCommand.registerOnCommand(this.command);
    }

    protected async commandAction(): Promise<void> {
        // No action
    }
}


export default new SettingsCommand();