From b912997491f52f2ce3ab6cf322e754b3cc41cd83 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 10 Jun 2024 21:29:11 +0200 Subject: [PATCH] fixes --- cd/__init__.py | 6 ++++-- cd/project.py | 2 +- cd/projects.py | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cd/__init__.py b/cd/__init__.py index cced3c9..b1b377f 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -12,9 +12,7 @@ from cd.projects import Projects COMMANDS_PREFIX = "cd-" projects = Projects() -print(projects) project = Project(projects) -print(project) def cd_browse_workspace() -> None: @@ -32,6 +30,10 @@ def cd_build_project() -> None: def cd_clone_branch() -> None: + print(projects, end="") + split() + print(project, end="") + split() print(f"""\ {project.url} ↓ diff --git a/cd/project.py b/cd/project.py index 3981ee7..d1244d9 100644 --- a/cd/project.py +++ b/cd/project.py @@ -42,7 +42,7 @@ class Project: self.url = urljoin(projects.url, self.name) def __str__(self: Project) -> str: - return """\ + return f"""\ branch = {self.branch} name = {self.name} root = {self.root} diff --git a/cd/projects.py b/cd/projects.py index 971f7a8..e5dd41c 100644 --- a/cd/projects.py +++ b/cd/projects.py @@ -31,7 +31,7 @@ class Projects: self.url = urljoin(value, self.group) def __str__(self: Projects) -> str: - return """\ + return f"""\ group = {self.group} name = {self.name} url = {self.url}