parent
74d4d86f17
commit
4be860e4cd
2 changed files with 10 additions and 8 deletions
16
cd.sh
16
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 "\
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue