format init
This commit is contained in:
parent
2b78b45b1b
commit
abd7afe65d
1 changed files with 12 additions and 5 deletions
|
@ -34,13 +34,19 @@ def cd_clone_branch() -> None:
|
||||||
split()
|
split()
|
||||||
print(project, end="")
|
print(project, end="")
|
||||||
split()
|
split()
|
||||||
print(f"""\
|
print(
|
||||||
|
f"""\
|
||||||
{project.url}
|
{project.url}
|
||||||
↓
|
↓
|
||||||
""", end="", flush=True)
|
""",
|
||||||
ps.run("git",
|
end="",
|
||||||
|
flush=True,
|
||||||
|
)
|
||||||
|
ps.run(
|
||||||
|
"git",
|
||||||
"clone",
|
"clone",
|
||||||
"--branch", project.branch,
|
"--branch",
|
||||||
|
project.branch,
|
||||||
"--",
|
"--",
|
||||||
project.url,
|
project.url,
|
||||||
project.root,
|
project.root,
|
||||||
|
@ -60,7 +66,8 @@ def cd_synchronize() -> None:
|
||||||
root = Path(os.sep) / user / project.branch / projects.group / project.name
|
root = Path(os.sep) / user / project.branch / projects.group / project.name
|
||||||
#
|
#
|
||||||
target = f"{user}@{host}:{root}"
|
target = f"{user}@{host}:{root}"
|
||||||
ps.run("rsync",
|
ps.run(
|
||||||
|
"rsync",
|
||||||
"--archive",
|
"--archive",
|
||||||
"--delete-before",
|
"--delete-before",
|
||||||
"--verbose",
|
"--verbose",
|
||||||
|
|
Loading…
Reference in a new issue