def __init__(self, context): # Adds things like name, description CreateRepositoryCommand.__init__(self, context) # Adds all downloader-related importer config options ImporterConfigMixin.__init__(self, options_bundle=PkgRepoOptionsBundle(), include_sync=True, include_ssl=True, include_proxy=True, include_basic_auth=True, include_throttling=True, include_unit_policy=True) # Adds all distributor config options repo_options.add_distributor_config_to_command(self)
def __init__(self, context): super(PkgRepoUpdateCommand, self).__init__(context) # The built-in options will be reorganized under a group to keep the # help text from being unwieldly. The base class will add them by # default, so remove them here before they are readded under a group. # self.options = [] # Adds all downloader-related importer config options ImporterConfigMixin.__init__(self, options_bundle=PkgRepoOptionsBundle(), include_sync=True, include_ssl=True, include_proxy=True, include_basic_auth=True, include_throttling=True, include_unit_policy=True) # Adds all distributor config options repo_options.add_distributor_config_to_command(self)