diff --git a/cd.sh b/cd.sh index 626c577..cdad2e8 100644 --- a/cd.sh +++ b/cd.sh @@ -573,17 +573,13 @@ ${CD_PYTHON_PACKAGES} cd_write_python_module () { cd_step "Write Python module" cd_write "${CD_PYTHON_PACKAGES}/env.py" "\ -CD_STEP = ${CD_STEP} - - -$(cd_echo CD_DOWN CD_VERTICAL CD_UP) - -$(cd_echo CD_OPEN CD_SHUT) - -$(cd_echo CD_SPLIT) - +$(cd_echo CD_OPEN CD_DOWN) +$(cd_echo CD_VERT CD_SPLT) +$(cd_echo CD___UP CD_SHUT) $(cd_echo CD_OS_ID CD_OS_VERSION) + +CD_STEP = $((CD_STEP+1)) " } @@ -707,15 +703,15 @@ cd_shut () { } cd_split () { - echo "${CD_SPLIT}" + echo "${CD_SPLT}" } cd_step () { CD_STEP=$((CD_STEP+1)) echo -n "\ ${CD_DOWN} -${CD_VERTICAL} ${CD_STEP} ${@} -${CD_UP} +${CD_VERT} ${CD_STEP} ${@} +${CD___UP} " } @@ -755,15 +751,14 @@ CD_PM_APT="apt" CD_PM_DNF="dnf" CD_PM_PACMAN="pacman" -CD_OPEN="${CD_BOX_DOWN}${CD_BOX_LEFT}" -CD_SHUT="${CD_BOX_UP}${CD_BOX_LEFT}" - CD_HORIZONTAL="${CD_BOX_HORIZONTAL}╌╌┄┄┈┈" -CD_VERTICAL="${CD_BOX_VERTICAL}" +CD_OPEN="${CD_BOX_DOWN}${CD_BOX_LEFT}" CD_DOWN="${CD_BOX_DOWN}${CD_HORIZONTAL}" -CD_SPLIT="${CD_BOX_RIGHT}${CD_HORIZONTAL}" -CD_UP="${CD_BOX_UP}${CD_HORIZONTAL}" +CD_VERT="${CD_BOX_VERTICAL}" +CD_SPLT="${CD_BOX_RIGHT}${CD_HORIZONTAL}" +CD___UP="${CD_BOX_UP}${CD_HORIZONTAL}" +CD_SHUT="${CD_BOX_UP}${CD_BOX_LEFT}" # run cd_main "${@}" diff --git a/cd/__init__.py b/cd/__init__.py index 6bb0000..840d848 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -76,6 +76,7 @@ def cd_synchronize(): def install_commands(path): + step('Install commands') user = '/usr/local/bin' for command in [ 'browse-workspace', @@ -89,6 +90,8 @@ def install_commands(path): def set_ssh(*arguments): + step('Set SSH') + # ssh_key, ssh_hosts = arguments # ssh_type = 'ed25519' @@ -121,11 +124,11 @@ def shut(*arguments): def split(): - print(env.CD_SPLIT, flush=True) + print(env.CD_SPLT, flush=True) def step(*arguments): env.CD_STEP += 1 print(env.CD_DOWN) - print(env.CD_VERTICAL, env.CD_STEP, *arguments) - print(env.CD_UP, flush=True) + print(env.CD_VERT, env.CD_STEP, *arguments) + print(env.CD___UP, flush=True)