This commit is contained in:
Marc Beninca 2024-06-05 11:41:47 +02:00
parent 4fc693a17e
commit 916b7a56cd
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 12 additions and 8 deletions

13
cd.sh
View file

@ -573,9 +573,13 @@ ${CD_PYTHON_PACKAGES}
cd_write_python_module () {
cd_step "Write Python module"
cd_write "${CD_PYTHON_PACKAGES}/env.py" "\
STEP = ${CD_STEP}
$(cd_echo CD_OS_ID CD_OS_VERSION)
STEP = ${CD_STEP}
DOWN = \"${CD_DOWN}\"
UP = \"${CD_UP}\"
VERTICAL = \"${CD_BOX_VERTICAL}\"
def open(*arguments):
@ -590,13 +594,6 @@ def shut(*arguments):
def split():
print('${CD_SPLIT}', flush=True)
def step(*arguments):
STEP += 1
print('${CD_DOWN}')
print('${CD_BOX_VERTICAL}', STEP, *arguments)
print('${CD_UP}', flush=True)
"
}

View file

@ -107,3 +107,10 @@ def set_ssh(*arguments):
if ssh_hosts:
fs.write(known, ssh_hosts)
os.chmod(known, 0o400)
def step(*arguments):
env.STEP += 1
print(env.DOWN)
print(env.VERTICAL, env.STEP, *arguments)
print(env.UP, flush=True)