MCPcopy Create free account
hub / github.com/Mister-leo/fssh / ShellContext

Struct ShellContext

cmd/fssh/shell_commands.go:42–54  ·  view source on GitHub ↗

ShellContext holds state for shell commands

Source from the content-addressed store, hash-verified

40
41// ShellContext holds state for shell commands
42type 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
57func cmdAdd(ctx *ShellContext) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected