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__
/.venv

View file

@ -5,7 +5,6 @@ from pathlib import Path
import env
from rwx import fs, ps
from rwx.log import stream as log
from cd.project import Project
from cd.projects import Projects
@ -35,19 +34,13 @@ 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,
@ -67,8 +60,7 @@ 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",
@ -154,6 +146,6 @@ def split() -> None:
def step(*arguments: str) -> None:
env.CD_STEP += 1
log.log(env.CD_DOWN)
print(env.CD_DOWN)
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]
line-length = 80
[tool.ruff.lint]
ignore = ["COM812", "D203", "D213", "ISC001"]
select = ["ALL"]