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

Cleanups#177

Merged
cmoog merged 2 commits intomasterfromsdk-additions
Nov 4, 2020
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
fixup! Cleanups
  • Loading branch information
@cmoog
cmoog committedNov 4, 2020
commit0a97c0f11d9ec04e59a3437fde6d1a0db2a30103
2 changes: 1 addition & 1 deletioninternal/cmd/shell.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -140,7 +140,7 @@ func runCommand(ctx context.Context, envName, command string, args []string) err
ctx, cancel := context.WithCancel(ctx)
defer cancel()

conn, err := client.DialWsep(ctx, env)
conn, err := client.DialWsep(ctx, env.ID)
if err != nil {
return xerrors.Errorf("dial websocket: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletioninternal/sync/singlefile.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,7 +17,7 @@ import (

// SingleFile copies the given file into the remote dir or remote path of the given coder.Environment.
func SingleFile(ctx context.Context, local, remoteDir string, env *coder.Environment, client *coder.Client) error {
conn, err := client.DialWsep(ctx, env)
conn, err := client.DialWsep(ctx, env.ID)
if err != nil {
return xerrors.Errorf("dial remote execer: %w", err)
}
Expand Down
4 changes: 2 additions & 2 deletionsinternal/sync/sync.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -89,7 +89,7 @@ func (s Sync) syncPaths(delete bool, local, remote string) error {
}

func (s Sync) remoteCmd(ctx context.Context, prog string, args ...string) error {
conn, err := s.Client.DialWsep(ctx,&s.Env)
conn, err := s.Client.DialWsep(ctx, s.Env.ID)
if err != nil {
return xerrors.Errorf("dial websocket: %w", err)
}
Expand DownExpand Up@@ -270,7 +270,7 @@ func (s Sync) Version() (string, error) {
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()

conn, err := s.Client.DialWsep(ctx,&s.Env)
conn, err := s.Client.DialWsep(ctx, s.Env.ID)
if err != nil {
return "", err
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp