Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: "coder ssh --shuffle" easter egg #1084

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 4 commits into from
May 17, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into david/easter-egg
  • Loading branch information
dwahler committed May 9, 2022
commit 36c50c01c96bcdd4ee2123b3d51665243456eee0
4 changes: 2 additions & 2 deletions cli/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func ssh() *cobra.Command {
return err
}

workspaces, err := client.WorkspacesByUser(cmd.Context(), codersdk.Me)
workspaces, err := client.WorkspacesByOwner(cmd.Context(), organization.ID, codersdk.Me)
if err != nil {
return err
}
Expand All @@ -68,7 +68,7 @@ func ssh() *cobra.Command {
}

workspaceParts = strings.Split(args[0], ".")
workspace, err = client.WorkspaceByName(cmd.Context(), codersdk.Me, workspaceParts[0])
workspace, err = client.WorkspaceByOwnerAndName(cmd.Context(), organization.ID, codersdk.Me, workspaceParts[0])
if err != nil {
return err
}
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.