diff --git a/spcd/project.py b/spcd/project.py index 89be501..c295d57 100644 --- a/spcd/project.py +++ b/spcd/project.py @@ -46,7 +46,7 @@ class Project: self.url = add_url_path(projects.url, self.name) def __repr__(self) -> str: - """List branch, name, root & url.""" + """Represent project.""" return f"Project(projects={self.projects!r})" def __str__(self) -> str: diff --git a/spcd/projects.py b/spcd/projects.py index 27b0334..5185feb 100644 --- a/spcd/projects.py +++ b/spcd/projects.py @@ -34,6 +34,10 @@ class Projects: if value := self.environment.get(variable, None): self.url = add_url_path(value, self.group) + def __repr__(self) -> str: + """Represent projects.""" + return "Projects()" + def __str__(self) -> str: """List group, name & url.""" return f"""\