File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,20 @@ def update_workspace(
335
335
click .echo (f"{ click .style ('SUCCESS' , fg = 'green' )} : Updated '{ update_name } '" )
336
336
337
337
338
+ @workspaces .command (name = "info" , section = "Platform Commands (https://silverback.apeworx.io)" )
339
+ @click .argument ("workspace" )
340
+ @platform_client
341
+ def workspace_info (platform : PlatformClient , workspace : str ):
342
+ """Get Configuration information about a CLUSTER"""
343
+
344
+ if not (workspace_info := platform .workspaces .get (workspace )):
345
+ raise click .BadOptionUsage ("workspace" , f"Unknown workspace '{ workspace } '" )
346
+
347
+ click .echo (f"{ click .style ('Name' , fg = 'green' )} : { workspace_info .name } " )
348
+ click .echo (f"{ click .style ('Slug' , fg = 'green' )} : '{ workspace_info .slug } '" )
349
+ click .echo (f"{ click .style ('Date Created' , fg = 'green' )} : '{ workspace_info .created } '" )
350
+
351
+
338
352
@cluster .command (name = "list" , section = "Platform Commands (https://silverback.apeworx.io)" )
339
353
@click .argument ("workspace" )
340
354
@platform_client
You can’t perform that action at this time.
0 commit comments