From d6f00d69450c606b71313cb7d8532f91275fca3c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 5 Jun 2024 11:45:41 +0200 Subject: [PATCH] py/split --- cd.sh | 8 +++----- cd/__init__.py | 4 ++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cd.sh b/cd.sh index b88b6fd..3d94d0f 100644 --- a/cd.sh +++ b/cd.sh @@ -578,8 +578,10 @@ STEP = ${CD_STEP} $(cd_echo CD_OS_ID CD_OS_VERSION) DOWN = \"${CD_DOWN}\" -UP = \"${CD_UP}\" VERTICAL = \"${CD_BOX_VERTICAL}\" +UP = \"${CD_UP}\" + +SPLIT = \"${CD_SPLIT}\" def open(*arguments): @@ -590,10 +592,6 @@ def open(*arguments): def shut(*arguments): print('${CD_SHUT}', end=str()) print(*arguments, flush=True) - - -def split(): - print('${CD_SPLIT}', flush=True) " } diff --git a/cd/__init__.py b/cd/__init__.py index d1c1653..82a2c1e 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -109,6 +109,10 @@ def set_ssh(*arguments): os.chmod(known, 0o400) +def split(): + print(env.SPLIT, flush=True) + + def step(*arguments): env.STEP += 1 print(env.DOWN)