steps/env,pkg

This commit is contained in:
Marc Beninca 2024-08-24 16:54:07 +02:00
parent ba4b428ede
commit a014410c7f
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -28,12 +28,15 @@
[ -n "${SPCD_URL_UBUNTU}" ] || [ -n "${SPCD_URL_UBUNTU}" ] ||
SPCD_URL_UBUNTU="https://ubuntu.mirrors.ovh.net" SPCD_URL_UBUNTU="https://ubuntu.mirrors.ovh.net"
# main # ╭───────╮
# │ steps │
# ╰───────╯
spcd_main() { spcd_main() {
# env
spcd_set_environment_variables spcd_set_environment_variables
#
spcd_list_working_directory spcd_list_working_directory
# # pkg
spcd_set_packages_repositories spcd_set_packages_repositories
spcd_set_packages_configuration spcd_set_packages_configuration
# #
@ -56,9 +59,9 @@ spcd_main() {
spcd_switch_to_python spcd_switch_to_python
} }
# ╭─────── # ╭───────┬─────
# │ steps │ # │ steps │ env │
# ╰─────── # ╰───────┴─────
spcd_set_environment_variables() { spcd_set_environment_variables() {
spcd_step "Set environment variables" spcd_step "Set environment variables"
@ -547,6 +550,10 @@ spcd_list_working_directory() {
spcd_ls "${spcd_lwd__path}" spcd_ls "${spcd_lwd__path}"
} }
# ╭───────┬─────╮
# │ steps │ pkg │
# ╰───────┴─────╯
spcd_set_packages_repositories() { spcd_set_packages_repositories() {
spcd_step "Set packages repositories" spcd_step "Set packages repositories"
case "${SPCD_OS_ID}" in case "${SPCD_OS_ID}" in