From 4be860e4cd88d1a6fbd9b221e655e5dd161ad42d Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 4 Jun 2024 21:13:08 +0200 Subject: [PATCH] split --- cd.sh | 16 +++++++++------- readme.md | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/cd.sh b/cd.sh index 173176f..70add07 100644 --- a/cd.sh +++ b/cd.sh @@ -32,7 +32,8 @@ cd_main () { cd_install_ssh cd_clean_packages_cache cd_install_python_modules - cd_execute_python_module "${@}" + cd_write_python_module + cd_switch_to_python "${@}" } # steps @@ -569,10 +570,8 @@ ${CD_PYTHON_PACKAGES} cd_rm "${root}" } -cd_execute_python_module () { -local path - cd_step "Execute Python module" - # +cd_write_python_module () { + cd_step "Write Python module" cd_write "${CD_PYTHON_PACKAGES}/env.py" "\ $(cd_echo CD_OS_ID CD_OS_VERSION) @@ -583,8 +582,11 @@ $(cd_echo CD_HORIZONTAL) $(cd_echo CD_DOWN CD_SPLIT CD_UP) " - # - cd_split +} + +cd_switch_to_python () { +local path + cd_step "Switch to Python" # path="$(realpath "${0}")" echo -n "\ diff --git a/readme.md b/readme.md index 981cca5..33bf913 100644 --- a/readme.md +++ b/readme.md @@ -80,4 +80,4 @@ from various CA, CI, OCI / OS. * integrate project repository cloning * override repository and framework locations * show previous states of directories & files -* split switch to Python step +* relay Python module name