ShellContext holds state for shell commands
| 40 | |
| 41 | // ShellContext holds state for shell commands |
| 42 | type ShellContext struct { |
| 43 | infos []sshconfig.HostInfo |
| 44 | hosts []string |
| 45 | byName map[string]sshconfig.HostInfo |
| 46 | byHostname map[string]sshconfig.HostInfo |
| 47 | ipToName map[string]string |
| 48 | idToName map[string]string |
| 49 | hostnames []string |
| 50 | ips []string |
| 51 | ids []string |
| 52 | liner *liner.State |
| 53 | importedKeys []string |
| 54 | } |
| 55 | |
| 56 | // cmdAdd adds a new SSH host configuration |
| 57 | func cmdAdd(ctx *ShellContext) error { |
nothing calls this directly
no outgoing calls
no test coverage detected