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-"
|
||||
|
||||
projects = Projects(os.environ)
|
||||
projects = Projects()
|
||||
project = Project(projects)
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
"""CI projects."""
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
GROUP_AND_NAME = [
|
||||
|
@ -14,8 +15,8 @@ SERVER_URL = [
|
|||
|
||||
|
||||
class Projects:
|
||||
def __init__(self: Projects, environment) -> None:
|
||||
self.environment = environment
|
||||
def __init__(self: Projects) -> None:
|
||||
self.environment = os.environ
|
||||
# group, name
|
||||
for variable in GROUP_AND_NAME:
|
||||
if value := self.environment.get(variable, None):
|
||||
|
|
Loading…
Reference in a new issue