Rename Context

This commit is contained in:
Caleb Brose 2022-06-13 19:16:16 +00:00 committed by GitHub
parent b5580f9503
commit 919dcebc45
4 changed files with 9 additions and 9 deletions

View file

@ -37,7 +37,7 @@ type LoginOptions struct {
Executable string
GitProtocol string
sshContext ssh.SshContext
sshContext ssh.Context
}
func Login(opts *LoginOptions) error {

View file

@ -85,7 +85,7 @@ func TestLogin_ssh(t *testing.T) {
HTTPClient: &http.Client{Transport: &tr},
Hostname: "example.com",
Interactive: true,
sshContext: ssh.SshContext{
sshContext: ssh.Context{
ConfigDir: dir,
KeygenExe: "ssh-keygen",
},

View file

@ -121,7 +121,7 @@ func (a *App) SSH(ctx context.Context, sshArgs []string, opts sshOptions) (err e
args = opts.scpArgs
}
sshContext := ssh.SshContext{}
sshContext := ssh.Context{}
startSSHOptions := liveshare.StartSSHServerOptions{}
if shouldGenerateSSHKeys(args, opts) && sshContext.HasKeygen() {