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:
|
def cd_clone_branch() -> None:
|
||||||
print(projects, end="")
|
log.info(projects)
|
||||||
split()
|
split()
|
||||||
print(project, end="")
|
log.info(project)
|
||||||
split()
|
split()
|
||||||
print(
|
log.info(
|
||||||
f"""\
|
f"""\
|
||||||
{project.url}
|
{project.url}
|
||||||
↓
|
↓
|
||||||
|
@ -56,7 +56,7 @@ def cd_clone_branch() -> None:
|
||||||
|
|
||||||
def cd_list_environment() -> None:
|
def cd_list_environment() -> None:
|
||||||
for variable, value in sorted(projects.environment.items()):
|
for variable, value in sorted(projects.environment.items()):
|
||||||
print(variable, "=", value)
|
log.info(f"{variable} = {value}")
|
||||||
|
|
||||||
|
|
||||||
def cd_synchronize() -> None:
|
def cd_synchronize() -> None:
|
||||||
|
@ -87,13 +87,13 @@ def browse(root: str) -> None:
|
||||||
paths.append(relative_path)
|
paths.append(relative_path)
|
||||||
frame(root)
|
frame(root)
|
||||||
for path in sorted(paths):
|
for path in sorted(paths):
|
||||||
print(path)
|
log.info(path)
|
||||||
shut(root)
|
shut(root)
|
||||||
|
|
||||||
|
|
||||||
def cat(file: str) -> None:
|
def cat(file: str) -> None:
|
||||||
frame(file)
|
frame(file)
|
||||||
print(fs.read_file_text(file).rstrip())
|
log.info(fs.read_file_text(file).rstrip())
|
||||||
shut(file)
|
shut(file)
|
||||||
|
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ def install_commands(path: str) -> None:
|
||||||
"list-environment",
|
"list-environment",
|
||||||
"synchronize",
|
"synchronize",
|
||||||
]:
|
]:
|
||||||
print(command)
|
log.info(command)
|
||||||
(user / f"{COMMANDS_PREFIX}{command}").symlink_to(path)
|
(user / f"{COMMANDS_PREFIX}{command}").symlink_to(path)
|
||||||
|
|
||||||
|
|
||||||
|
@ -138,22 +138,20 @@ def set_ssh(*arguments: str) -> None:
|
||||||
cat(known)
|
cat(known)
|
||||||
|
|
||||||
|
|
||||||
def frame(*arguments: str) -> None:
|
def frame(text: str) -> None:
|
||||||
print(env.CD_OPEN, end="")
|
log.info(f"{env.CD_OPEN}{text}")
|
||||||
print(*arguments, flush=True)
|
|
||||||
|
|
||||||
|
|
||||||
def shut(*arguments: str) -> None:
|
def shut(text: str) -> None:
|
||||||
print(env.CD_SHUT, end="")
|
log.info(f"{env.CD_SHUT}{text}")
|
||||||
print(*arguments, flush=True)
|
|
||||||
|
|
||||||
|
|
||||||
def split() -> None:
|
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
|
env.CD_STEP += 1
|
||||||
log.info(env.CD_DOWN)
|
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)
|
log.info(env.CD___UP)
|
||||||
|
|
Loading…
Reference in a new issue