Skip to content

Commit 8103c00

Browse files
🔧 Update table title and rows to use app.name instead of app.tag in squarecloud/cli/app.py, fix table headers and rows in app_list and app_group to remove unnecessary fields in squarecloud/cli/app.py
1 parent ce64be4 commit 8103c00

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

‎squarecloud/cli/app.py‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async def app_group(ctx: Context, app_id: str, token: str):
5252
if not ctx.invoked_subcommand:
5353
with Console().status('loading'):
5454
app = await client.app(app_id)
55-
table = Table(title=app.tag, header_style='purple')
55+
table = Table(title=app.name, header_style='purple')
5656
table.add_column('Name', justify='center')
5757
table.add_column('ID', justify='center')
5858
table.add_column('RAM', justify='center')
@@ -61,12 +61,11 @@ async def app_group(ctx: Context, app_id: str, token: str):
6161
table.add_column('Cluster', justify='center')
6262

6363
table.add_row(
64-
app.tag,
64+
app.name,
6565
app.id,
6666
str(app.ram),
6767
app.lang,
6868
app.desc,
69-
str(app.is_website),
7069
app.cluster,
7170
style='green',
7271
)
@@ -132,16 +131,14 @@ async def app_list(ctx: Context, token: str):
132131
table.add_column('RAM', justify='center')
133132
table.add_column('Language', justify='center')
134133
table.add_column('Description', justify='center')
135-
table.add_column('Is Website', justify='center')
136134
table.add_column('Cluster', justify='center')
137135
for app in apps:
138136
table.add_row(
139-
app.tag,
137+
app.name,
140138
app.id,
141139
str(app.ram),
142140
app.lang,
143141
app.desc,
144-
str(app.is_website),
145142
app.cluster,
146143
style='green',
147144
)

0 commit comments

Comments
 (0)