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-"
|
||||
|
||||
projects = Projects()
|
||||
print(projects)
|
||||
project = Project(projects)
|
||||
print(project)
|
||||
|
||||
|
||||
def cd_browse_workspace() -> None:
|
||||
|
@ -32,6 +30,10 @@ def cd_build_project() -> None:
|
|||
|
||||
|
||||
def cd_clone_branch() -> None:
|
||||
print(projects, end="")
|
||||
split()
|
||||
print(project, end="")
|
||||
split()
|
||||
print(f"""\
|
||||
{project.url}
|
||||
↓
|
||||
|
|
|
@ -42,7 +42,7 @@ class Project:
|
|||
self.url = urljoin(projects.url, self.name)
|
||||
|
||||
def __str__(self: Project) -> str:
|
||||
return """\
|
||||
return f"""\
|
||||
branch = {self.branch}
|
||||
name = {self.name}
|
||||
root = {self.root}
|
||||
|
|
|
@ -31,7 +31,7 @@ class Projects:
|
|||
self.url = urljoin(value, self.group)
|
||||
|
||||
def __str__(self: Projects) -> str:
|
||||
return """\
|
||||
return f"""\
|
||||
group = {self.group}
|
||||
name = {self.name}
|
||||
url = {self.url}
|
||||
|
|
Loading…
Reference in a new issue