list_environment_variables
This commit is contained in:
parent
8c5ada3f94
commit
2c5c28f364
2 changed files with 10 additions and 10 deletions
|
@ -44,17 +44,26 @@ def install_commands(path: str) -> None:
|
|||
for command in [
|
||||
"browse-workspace",
|
||||
"build-project",
|
||||
"list-environment",
|
||||
"synchronize",
|
||||
]:
|
||||
log.info(command)
|
||||
(user / f"{COMMANDS_PREFIX}{command}").symlink_to(path)
|
||||
|
||||
|
||||
def list_environment_variables() -> None:
|
||||
step("List environment variables")
|
||||
for variable, value in sorted(projects.environment.items()):
|
||||
if variable != "SPCD_SSH_KEY":
|
||||
log.info(f"{variable} = {value}")
|
||||
else:
|
||||
log.info(f"{variable}")
|
||||
|
||||
|
||||
def main(main: str) -> None:
|
||||
path, *arguments = sys.argv
|
||||
name = Path(path).name
|
||||
if name == "__main__.py":
|
||||
list_environment_variables()
|
||||
clone_project_branch()
|
||||
set_ssh()
|
||||
install_commands(main)
|
||||
|
|
|
@ -3,7 +3,6 @@ from pathlib import Path
|
|||
|
||||
import env
|
||||
from rwx import ps
|
||||
from rwx.log import stream as log
|
||||
|
||||
from spcd.ci import project, projects
|
||||
from spcd.util import browse
|
||||
|
@ -23,14 +22,6 @@ def spcd_build_project() -> None:
|
|||
pass
|
||||
|
||||
|
||||
def spcd_list_environment() -> None:
|
||||
for variable, value in sorted(projects.environment.items()):
|
||||
if variable != "SPCD_SSH_KEY":
|
||||
log.info(f"{variable} = {value}")
|
||||
else:
|
||||
log.info(f"{variable}")
|
||||
|
||||
|
||||
def spcd_synchronize() -> None:
|
||||
host = env.SPCD_PROJECT_PATH
|
||||
source = "out"
|
||||
|
|
Loading…
Reference in a new issue