Compare commits

..

No commits in common. "f776b8468d63b4078738fb488d3c375a55fd6421" and "b912997491f52f2ce3ab6cf322e754b3cc41cd83" have entirely different histories.

3 changed files with 7 additions and 20 deletions

1
.gitignore vendored
View file

@ -1,2 +1 @@
__pycache__ __pycache__
/.venv

View file

@ -5,7 +5,6 @@ from pathlib import Path
import env import env
from rwx import fs, ps from rwx import fs, ps
from rwx.log import stream as log
from cd.project import Project from cd.project import Project
from cd.projects import Projects from cd.projects import Projects
@ -35,19 +34,13 @@ def cd_clone_branch() -> None:
split() split()
print(project, end="") print(project, end="")
split() split()
print( print(f"""\
f"""\
{project.url} {project.url}
""", """, end="", flush=True)
end="", ps.run("git",
flush=True,
)
ps.run(
"git",
"clone", "clone",
"--branch", "--branch", project.branch,
project.branch,
"--", "--",
project.url, project.url,
project.root, project.root,
@ -67,8 +60,7 @@ 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( ps.run("rsync",
"rsync",
"--archive", "--archive",
"--delete-before", "--delete-before",
"--verbose", "--verbose",
@ -154,6 +146,6 @@ def split() -> None:
def step(*arguments: str) -> None: def step(*arguments: str) -> None:
env.CD_STEP += 1 env.CD_STEP += 1
log.log(env.CD_DOWN) print(env.CD_DOWN)
print(env.CD_VERT, env.CD_STEP, *arguments) print(env.CD_VERT, env.CD_STEP, *arguments)
log.log(env.CD___UP) print(env.CD___UP, flush=True)

View file

@ -1,6 +1,2 @@
[tool.ruff] [tool.ruff]
line-length = 80
[tool.ruff.lint]
ignore = ["COM812", "D203", "D213", "ISC001"]
select = ["ALL"] select = ["ALL"]