parent
033898ccc0
commit
b912997491
3 changed files with 6 additions and 4 deletions
|
@ -12,9 +12,7 @@ from cd.projects import Projects
|
||||||
COMMANDS_PREFIX = "cd-"
|
COMMANDS_PREFIX = "cd-"
|
||||||
|
|
||||||
projects = Projects()
|
projects = Projects()
|
||||||
print(projects)
|
|
||||||
project = Project(projects)
|
project = Project(projects)
|
||||||
print(project)
|
|
||||||
|
|
||||||
|
|
||||||
def cd_browse_workspace() -> None:
|
def cd_browse_workspace() -> None:
|
||||||
|
@ -32,6 +30,10 @@ def cd_build_project() -> None:
|
||||||
|
|
||||||
|
|
||||||
def cd_clone_branch() -> None:
|
def cd_clone_branch() -> None:
|
||||||
|
print(projects, end="")
|
||||||
|
split()
|
||||||
|
print(project, end="")
|
||||||
|
split()
|
||||||
print(f"""\
|
print(f"""\
|
||||||
{project.url}
|
{project.url}
|
||||||
↓
|
↓
|
||||||
|
|
|
@ -42,7 +42,7 @@ class Project:
|
||||||
self.url = urljoin(projects.url, self.name)
|
self.url = urljoin(projects.url, self.name)
|
||||||
|
|
||||||
def __str__(self: Project) -> str:
|
def __str__(self: Project) -> str:
|
||||||
return """\
|
return f"""\
|
||||||
branch = {self.branch}
|
branch = {self.branch}
|
||||||
name = {self.name}
|
name = {self.name}
|
||||||
root = {self.root}
|
root = {self.root}
|
||||||
|
|
|
@ -31,7 +31,7 @@ class Projects:
|
||||||
self.url = urljoin(value, self.group)
|
self.url = urljoin(value, self.group)
|
||||||
|
|
||||||
def __str__(self: Projects) -> str:
|
def __str__(self: Projects) -> str:
|
||||||
return """\
|
return f"""\
|
||||||
group = {self.group}
|
group = {self.group}
|
||||||
name = {self.name}
|
name = {self.name}
|
||||||
url = {self.url}
|
url = {self.url}
|
||||||
|
|
Loading…
Reference in a new issue