()
| 35 | var ErrKeyAlreadyExists = errors.New("SSH key already exists") |
| 36 | |
| 37 | func (c *Context) LocalPublicKeys() ([]string, error) { |
| 38 | sshDir, err := c.SshDir() |
| 39 | if err != nil { |
| 40 | return nil, err |
| 41 | } |
| 42 | |
| 43 | return filepath.Glob(filepath.Join(sshDir, "*.pub")) |
| 44 | } |
| 45 | |
| 46 | func (c *Context) HasKeygen() bool { |
| 47 | _, err := c.findKeygen() |
no test coverage detected