Skip to content

feat(cli): make schedule show cmd more useful to admins #10428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
johnstcn opened this issue Oct 30, 2023 · 1 comment · Fixed by #10596
Closed

feat(cli): make schedule show cmd more useful to admins #10428

johnstcn opened this issue Oct 30, 2023 · 1 comment · Fixed by #10596
Assignees
Labels
cli Area: CLI

Comments

@johnstcn
Copy link
Member

johnstcn commented Oct 30, 2023

Currently, coder schedule only shows schedule details for a single workspace.
It would be more useful for administrators to allow them to see schedule details for multiple workspaces.

There are a number of quality-of-life improvements possible here:

  • Allow specifying multiple workspaces in canonical user/workspace form e.g. coder schedule show user1/ws1 user1/ws2 user2/ws1
  • Allow passing an optional --all argument to show all workspaces e.g. coder schedule show --all
  • Allow filtering by status similar to coder list e.g. coder schedule show --search 'status:running' (implies --all)
  • Make the output be a proper table in order to be consistent with coder list.
@johnstcn
Copy link
Member Author

#10596 modifies the behaviour of the schedule show command to allow showing schedules for multiple workspaces.

Note that the output of schedule show is identical to that of list -c workspace,status,starts_at,stops_after.

A separate issue was also filed to make this information more easily available at the API level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Area: CLI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant