MCPcopy Index your code
hub / github.com/cli/cli / automaticPrivateKeyPath

Function automaticPrivateKeyPath

pkg/cmd/codespace/ssh.go:695–702  ·  view source on GitHub ↗
(sshContext ssh.Context)

Source from the content-addressed store, hash-verified

693}
694
695func automaticPrivateKeyPath(sshContext ssh.Context) (string, error) {
696 sshDir, err := sshContext.SshDir()
697 if err != nil {
698 return "", err
699 }
700
701 return path.Join(sshDir, automaticPrivateKeyName), nil
702}
703
704type cpOptions struct {
705 sshOptions

Callers 2

selectSSHKeysFunction · 0.85
printOpenSSHConfigMethod · 0.85

Calls 2

SshDirMethod · 0.80
JoinMethod · 0.80

Tested by

no test coverage detected