This commit is contained in:
Marc Beninca 2024-06-08 23:56:21 +02:00
parent c60897e876
commit 617aa98ee1
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
3 changed files with 13 additions and 13 deletions

View file

@ -6,13 +6,13 @@ import sys
import cd import cd
if __name__ == '__main__': if __name__ == "__main__":
command, *arguments = sys.argv command, *arguments = sys.argv
command = os.path.basename(command) command = os.path.basename(command)
if command == '__main__.py': if command == "__main__.py":
cd.set_ssh(*arguments) cd.set_ssh(*arguments)
cd.install_commands(__file__) cd.install_commands(__file__)
else: else:
command = command.replace('-', '_') command = command.replace("-", "_")
function = getattr(cd, command) function = getattr(cd, command)
function(*arguments) function(*arguments)

View file

@ -1,16 +1,16 @@
from os import path from os import path
BRANCH = [ BRANCH = [
'GITHUB_REF_NAME', "GITHUB_REF_NAME",
'CI_COMMIT_BRANCH', "CI_COMMIT_BRANCH",
] ]
NAME = [ NAME = [
'GITHUB_REPOSITORY', "GITHUB_REPOSITORY",
'CI_PROJECT_PATH', "CI_PROJECT_PATH",
] ]
ROOT = [ ROOT = [
'GITHUB_WORKSPACE', "GITHUB_WORKSPACE",
'CI_PROJECT_DIR', "CI_PROJECT_DIR",
] ]

View file

@ -1,12 +1,12 @@
from os import path from os import path
GROUP_AND_NAME = [ GROUP_AND_NAME = [
'GITHUB_REPOSITORY', "GITHUB_REPOSITORY",
'CI_PROJECT_PATH', "CI_PROJECT_PATH",
] ]
SERVER_URL = [ SERVER_URL = [
'GITHUB_SERVER_URL', "GITHUB_SERVER_URL",
'CI_SERVER_URL', "CI_SERVER_URL",
] ]