parent
8185283391
commit
936c157865
1 changed files with 14 additions and 16 deletions
|
@ -31,11 +31,11 @@ def cd_build_project() -> None:
|
|||
|
||||
|
||||
def cd_clone_branch() -> None:
|
||||
print(projects, end="")
|
||||
log.info(projects)
|
||||
split()
|
||||
print(project, end="")
|
||||
log.info(project)
|
||||
split()
|
||||
print(
|
||||
log.info(
|
||||
f"""\
|
||||
{project.url}
|
||||
↓
|
||||
|
@ -56,7 +56,7 @@ def cd_clone_branch() -> None:
|
|||
|
||||
def cd_list_environment() -> None:
|
||||
for variable, value in sorted(projects.environment.items()):
|
||||
print(variable, "=", value)
|
||||
log.info(f"{variable} = {value}")
|
||||
|
||||
|
||||
def cd_synchronize() -> None:
|
||||
|
@ -87,13 +87,13 @@ def browse(root: str) -> None:
|
|||
paths.append(relative_path)
|
||||
frame(root)
|
||||
for path in sorted(paths):
|
||||
print(path)
|
||||
log.info(path)
|
||||
shut(root)
|
||||
|
||||
|
||||
def cat(file: str) -> None:
|
||||
frame(file)
|
||||
print(fs.read_file_text(file).rstrip())
|
||||
log.info(fs.read_file_text(file).rstrip())
|
||||
shut(file)
|
||||
|
||||
|
||||
|
@ -107,7 +107,7 @@ def install_commands(path: str) -> None:
|
|||
"list-environment",
|
||||
"synchronize",
|
||||
]:
|
||||
print(command)
|
||||
log.info(command)
|
||||
(user / f"{COMMANDS_PREFIX}{command}").symlink_to(path)
|
||||
|
||||
|
||||
|
@ -138,22 +138,20 @@ def set_ssh(*arguments: str) -> None:
|
|||
cat(known)
|
||||
|
||||
|
||||
def frame(*arguments: str) -> None:
|
||||
print(env.CD_OPEN, end="")
|
||||
print(*arguments, flush=True)
|
||||
def frame(text: str) -> None:
|
||||
log.info(f"{env.CD_OPEN}{text}")
|
||||
|
||||
|
||||
def shut(*arguments: str) -> None:
|
||||
print(env.CD_SHUT, end="")
|
||||
print(*arguments, flush=True)
|
||||
def shut(text: str) -> None:
|
||||
log.info(f"{env.CD_SHUT}{text}")
|
||||
|
||||
|
||||
def split() -> None:
|
||||
print(env.CD_SPLT, flush=True)
|
||||
log.info(env.CD_SPLT)
|
||||
|
||||
|
||||
def step(*arguments: str) -> None:
|
||||
def step(text: str) -> None:
|
||||
env.CD_STEP += 1
|
||||
log.info(env.CD_DOWN)
|
||||
print(env.CD_VERT, env.CD_STEP, *arguments)
|
||||
log.info(f"{env.CD_VERT} {env.CD_STEP} {text}")
|
||||
log.info(env.CD___UP)
|
||||
|
|
Loading…
Reference in a new issue