From abd7afe65dca9e39d8c9100a6b4818a3a54934e9 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 12 Jun 2024 14:40:39 +0200 Subject: [PATCH] format init --- cd/__init__.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/cd/__init__.py b/cd/__init__.py index b1b377f..b310cfd 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -34,13 +34,19 @@ def cd_clone_branch() -> None: split() print(project, end="") split() - print(f"""\ + print( + f"""\ {project.url} ↓ -""", end="", flush=True) - ps.run("git", +""", + end="", + flush=True, + ) + ps.run( + "git", "clone", - "--branch", project.branch, + "--branch", + project.branch, "--", project.url, project.root, @@ -60,7 +66,8 @@ def cd_synchronize() -> None: root = Path(os.sep) / user / project.branch / projects.group / project.name # target = f"{user}@{host}:{root}" - ps.run("rsync", + ps.run( + "rsync", "--archive", "--delete-before", "--verbose",