From 5443d05c84b5ddecd24508d40cd42694c1b9d554 Mon Sep 17 00:00:00 2001 From: Gdetrane Date: Tue, 21 Jan 2025 16:03:21 +0100 Subject: [PATCH] Add a docstring for copy-repo [RHELDST-28512] Add docstring to the CopyRepo class for completing the docs generation. --- src/pubtools/_pulp/tasks/copy_repo.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pubtools/_pulp/tasks/copy_repo.py b/src/pubtools/_pulp/tasks/copy_repo.py index fadf175c..54b961c6 100644 --- a/src/pubtools/_pulp/tasks/copy_repo.py +++ b/src/pubtools/_pulp/tasks/copy_repo.py @@ -111,6 +111,13 @@ def __call__(self, /, *args, **keywords): class CopyRepo(CollectorService, PulpClientService, PulpRepositoryOperation): + """ + Copy content from one repository to another. + + This command copies content from one repository to another, for multiple provided `source,destination` pairs. + Copied content may optionally be filtered on content types. + If the user provides a non existing repo, the command fails. + """ @property def content_type_criteria(self): # Only return non-None if there were really any types given.