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
if __name__ == '__main__':
if __name__ == "__main__":
command, *arguments = sys.argv
command = os.path.basename(command)
if command == '__main__.py':
if command == "__main__.py":
cd.set_ssh(*arguments)
cd.install_commands(__file__)
else:
command = command.replace('-', '_')
command = command.replace("-", "_")
function = getattr(cd, command)
function(*arguments)

View file

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

View file

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