Compare commits

...

8 commits

Author SHA1 Message Date
4e9a2f3804
steps
All checks were successful
/ job (push) Successful in 1m0s
2024-06-05 17:04:06 +02:00
d5e8008417
step 2024-06-05 17:02:08 +02:00
0e585adc7c
++ 2024-06-05 16:55:29 +02:00
9fea2acbfd
rejigger 2024-06-05 14:50:13 +02:00
4d61f04344
up 2024-06-05 14:49:24 +02:00
50b2fbfeef
vert 2024-06-05 14:48:19 +02:00
b6b8e03b50
splt 2024-06-05 14:46:56 +02:00
2c85bcc6bc
rejigger 2024-06-05 14:37:23 +02:00
2 changed files with 19 additions and 21 deletions

31
cd.sh
View file

@ -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 "${@}"

View file

@ -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)