Skip to content

Commit

Permalink
Merge pull request #88 from tekktrik/dev/error-no-workspace
Browse files Browse the repository at this point in the history
Error if workspace not found
  • Loading branch information
tekktrik authored Nov 1, 2022
2 parents dfa34d4 + 7d612b4 commit 35c9528
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion circlink/cli/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,14 @@ def load(name: str = Argument(..., help="Name of the workspace to load")) -> Non
@workspace_app.command()
def view(name: str = Argument(..., help="The name of the workspace to view")):
"""View details about a workspace."""
circlink.backend.view_backend(
results = circlink.backend.view_backend(
"*",
folder=_get_ws_path(name),
exclude=("Base Directory", "Running?", "Process ID"),
)
if not results:
print(f"Workspace '{name}' does not exist!")
raise Exit(1)


@workspace_app.command()
Expand Down

0 comments on commit 35c9528

Please sign in to comment.