MCPcopy
hub / github.com/cli/cli / SshDir

Method SshDir

pkg/ssh/ssh_keys.go:91–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89}
90
91func (c *Context) SshDir() (string, error) {
92 if c.configDir != "" {
93 return c.configDir, nil
94 }
95 dir, err := config.HomeDirPath(".ssh")
96 if err == nil {
97 c.configDir = dir
98 }
99 return dir, err
100}
101
102func (c *Context) findKeygen() (string, error) {
103 if c.keygenExe != "" {

Callers 4

LocalPublicKeysMethod · 0.95
GenerateSSHKeyMethod · 0.95
TestLoginFunction · 0.80
automaticPrivateKeyPathFunction · 0.80

Calls 1

HomeDirPathFunction · 0.92

Tested by 1

TestLoginFunction · 0.64