From 5a55cfba1692376ba86610566d59b0c4149f24b1 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 4 Jun 2024 22:13:57 +0200 Subject: [PATCH] env/step --- cd.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cd.sh b/cd.sh index 70add07..a66889d 100644 --- a/cd.sh +++ b/cd.sh @@ -573,6 +573,9 @@ ${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) @@ -580,7 +583,14 @@ $(cd_echo CD_OPEN CD_SHUT) $(cd_echo CD_HORIZONTAL) -$(cd_echo CD_DOWN CD_SPLIT CD_UP) +$(cd_echo CD_SPLIT) + + +def step(*arguments): + STEP += 1 + print('${CD_DOWN}') + print('${CD_BOX_VERTICAL}', STEP, *arguments) + print('${CD_UP}', flush=True) " }