Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

feat: add username to 'coder ws ls' #486

Merged
merged 3 commits into from
Jul 20, 2022
Merged
Show file tree
Hide file tree
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
make lint
  • Loading branch information
sreya committed Jul 19, 2022
commit fe2776d85f95d379e94aa600611edec9eefe8bcc
4 changes: 2 additions & 2 deletions internal/cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func pingAPI(ctx context.Context, workspaceURL *url.URL, token string) error {
return nil
}

// isWSL determines if coder-cli is running within Windows Subsystem for Linux
// isWSL determines if coder-cli is running within Windows Subsystem for Linux.
func isWSL() (bool, error) {
if runtime.GOOS == goosDarwin || runtime.GOOS == goosWindows {
return false, nil
Expand All @@ -130,7 +130,7 @@ func isWSL() (bool, error) {
return strings.Contains(strings.ToLower(string(data)), "microsoft"), nil
}

// openURL opens the provided URL via user's default browser
// openURL opens the provided URL via user's default browser.
func openURL(url string) error {
var cmd string
var args []string
Expand Down
2 changes: 1 addition & 1 deletion internal/coderutil/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func MakeUserMap(ctx context.Context, client coder.Client, workspaces []coder.Wo
}

fetchIds := make([]string, 0, len(userMap))
for id, _ := range userMap {
for id := range userMap {
fetchIds = append(fetchIds, id)
}

Expand Down