Skip to content

fix: Unnest workspaces command to the top-level #1241

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

Merged
merged 2 commits into from
May 2, 2022
Merged

fix: Unnest workspaces command to the top-level #1241

merged 2 commits into from
May 2, 2022

Conversation

kylecarbs
Copy link
Member

This changes all "coder workspace *" commands to root.
A few of these were already at the root, like SSH. The
inconsistency made for a confusing experience.

@kylecarbs kylecarbs requested review from coadler, bpmct and code-asher May 1, 2022 16:13
@codecov
Copy link

codecov bot commented May 1, 2022

Codecov Report

Merging #1241 (47f7940) into main (252d868) will increase coverage by 0.08%.
The diff coverage is 98.11%.

@@            Coverage Diff             @@
##             main    #1241      +/-   ##
==========================================
+ Coverage   65.98%   66.07%   +0.08%     
==========================================
  Files         276      275       -1     
  Lines       17984    17949      -35     
  Branches      216      216              
==========================================
- Hits        11867    11860       -7     
+ Misses       4878     4852      -26     
+ Partials     1239     1237       -2     
Flag Coverage Δ
unittest-go-macos-latest 53.27% <98.11%> (+0.03%) ⬆️
unittest-go-postgres- 65.07% <98.11%> (+0.11%) ⬆️
unittest-go-ubuntu-latest 55.71% <98.11%> (+<0.01%) ⬆️
unittest-go-windows-2022 51.66% <98.11%> (+0.05%) ⬆️
unittest-js 70.69% <ø> (ø)
Impacted Files Coverage Δ
cli/list.go 6.55% <50.00%> (ø)
cli/autostart.go 75.00% <100.00%> (ø)
cli/autostop.go 75.00% <100.00%> (ø)
cli/cliui/agent.go 77.19% <100.00%> (ø)
cli/create.go 56.66% <100.00%> (ø)
cli/delete.go 19.23% <100.00%> (ø)
cli/root.go 78.98% <100.00%> (+1.29%) ⬆️
cli/show.go 16.66% <100.00%> (ø)
cli/start.go 16.00% <100.00%> (ø)
cli/stop.go 16.00% <100.00%> (ø)
... and 13 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 252d868...47f7940. Read the comment docs.

cli/delete.go Outdated
@@ -10,12 +10,11 @@ import (
"github.com/coder/coder/codersdk"
)

func workspaceDelete() *cobra.Command {
func deleteWS() *cobra.Command {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the other functions seem to have removed workspace references in the names. WS seems a bit ambiguous as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of our linters protects function names from being built-in keywords, but I'll just disable it for this case.

@kylecarbs kylecarbs self-assigned this May 2, 2022
This changes all "coder workspace *" commands to root.
A few of these were already at the root, like SSH. The
inconsistency made for a confusing experience.
@kylecarbs kylecarbs merged commit c2b5009 into main May 2, 2022
@kylecarbs kylecarbs deleted the unnestws branch May 2, 2022 16:08
kylecarbs added a commit that referenced this pull request Jun 10, 2022
This changes all "coder workspace *" commands to root.
A few of these were already at the root, like SSH. The
inconsistency made for a confusing experience.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants