Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

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

Merged
sreya merged 3 commits intomainfromjon/wslsusername
Jul 20, 2022
Merged
Show file tree
Hide file tree
Changes from1 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
PrevPrevious commit
NextNext commit
make lint
  • Loading branch information
@sreya
sreya committedJul 19, 2022
commitfe2776d85f95d379e94aa600611edec9eefe8bcc
4 changes: 2 additions & 2 deletionsinternal/cmd/login.go
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletioninternal/coderutil/workspace.go
View file
Open in desktop
Original file line numberDiff line numberDiff 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

[8]ページ先頭

©2009-2025 Movatter.jp