def execute(self, opts):
    if ((opts.sub_cmd is None) or (opts.sub_cmd not in ['settings', 'repository', 'plan'])):
        _exit_if_errors(['<subcommand> must be one off [settings, repository, plan]'])
    if (opts.sub_cmd == 'settings'):
        self.settings_cmd.execute(opts)
    elif (opts.sub_cmd == 'repository'):
        self.repository_cmd.execute(opts)
    elif (opts.sub_cmd == 'plan'):
        self.plan_cmd.execute(opts)
def execute(self, opts):
    if ((opts.sub_cmd is None) or (opts.sub_cmd not in ['settings', 'repository', 'plan'])):
        _exit_if_errors(['<subcommand> must be one off [settings, repository, plan]'])
    if (opts.sub_cmd == 'settings'):
        self.settings_cmd.execute(opts)
    elif (opts.sub_cmd == 'repository'):
        self.repository_cmd.execute(opts)
    elif (opts.sub_cmd == 'plan'):
        self.plan_cmd.execute(opts)