Skip to content

Commit

Permalink
bin/tau: added info about switching workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
Dastan-glitch committed Oct 21, 2023
1 parent 585a967 commit 517e75b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/tau/tau-python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,11 +607,13 @@ async def main():
filters = sys.argv[2:]
list_tasks(tasks, workspace, filters)
else:
await show_active_tasks()
await show_active_tasks(workspace, server_name, port)
return 0
elif sys.argv[1] == "switch":
if not await api.switch_workspace(sys.argv[2], server_name, port):
print(f"Error: Workspace \"{sys.argv[2]}\" is not configured.")
else:
print(f"You are now on \"{sys.argv[2]}\" workspace.")
return 0

try:
Expand Down

0 comments on commit 517e75b

Please sign in to comment.