Example #1
0
    def __init__(self, context):
        super(RepoGroupMemberSection, self).__init__('members', _('manage members of repository groups'))
        self.context = context
        self.prompt = context.prompt

        id_option = PulpCliOption('--group-id', _('id of a repository group'), required=True)

        list_command = PulpCliCommand('list', _('list of repositories in a particular group'), self.list)
        list_command.add_option(id_option)
        self.add_command(list_command)

        add_command = SearchCommand(self.add, criteria=False, name='add', description=_('add repositories based on search parameters'))
        add_command.add_option(id_option)
        self.add_command(add_command)

        remove_command = SearchCommand(self.remove, criteria=False, name='remove', description=_('remove repositories based on search parameters'))
        remove_command.add_option(id_option)
        self.add_command(remove_command)