Skip to content

Commit

Permalink
remove id
Browse files Browse the repository at this point in the history
  • Loading branch information
SirEntropy committed Dec 16, 2024
1 parent 2b1ce68 commit d82820a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cased/commands/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,13 @@ def projects(details=True):

if details:
table = Table(title="Projects Details", box=box.ROUNDED)
table.add_column("ID", style="cyan", no_wrap=True)
table.add_column("Repository", style="magenta")
table.add_column("Code Host", style="green")
table.add_column("Latest Deployment", style="yellow")

for project in projects:
row_style = "bold" if str(project["id"]) == current_project_id else ""
table.add_row(
str(project["id"]),
project["repository_full_name"],
project["code_host"],
project["latest_deployment"],
Expand All @@ -143,7 +141,7 @@ def projects(details=True):
choices = ["Exit without changing project"]
choices.extend(
[
f"{project['id']} - {project['repository_full_name']} ({project['code_host']})"
f"{project['repository_full_name']} ({project['code_host']})"
for project in projects
]
)
Expand Down

0 comments on commit d82820a

Please sign in to comment.