parent
77bc6a0a44
commit
bdd58e90f2
2 changed files with 4 additions and 3 deletions
|
@ -11,7 +11,7 @@ from cd.projects import Projects
|
||||||
|
|
||||||
COMMANDS_PREFIX = "cd-"
|
COMMANDS_PREFIX = "cd-"
|
||||||
|
|
||||||
projects = Projects(os.environ)
|
projects = Projects()
|
||||||
project = Project(projects)
|
project = Project(projects)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
"""CI projects."""
|
"""CI projects."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
GROUP_AND_NAME = [
|
GROUP_AND_NAME = [
|
||||||
|
@ -14,8 +15,8 @@ SERVER_URL = [
|
||||||
|
|
||||||
|
|
||||||
class Projects:
|
class Projects:
|
||||||
def __init__(self: Projects, environment) -> None:
|
def __init__(self: Projects) -> None:
|
||||||
self.environment = environment
|
self.environment = os.environ
|
||||||
# group, name
|
# group, name
|
||||||
for variable in GROUP_AND_NAME:
|
for variable in GROUP_AND_NAME:
|
||||||
if value := self.environment.get(variable, None):
|
if value := self.environment.get(variable, None):
|
||||||
|
|
Loading…
Reference in a new issue