"
This commit is contained in:
parent
c60897e876
commit
617aa98ee1
3 changed files with 13 additions and 13 deletions
|
@ -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)
|
||||||
|
|
|
@ -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",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue