MCPcopy Create free account
hub / github.com/cogentcore/core / ActiveSSH

Method ActiveSSH

shell/shell.go:174–179  ·  view source on GitHub ↗

ActiveSSH returns the active ssh client

()

Source from the content-addressed store, hash-verified

172
173// ActiveSSH returns the active ssh client
174func (sh *Shell) ActiveSSH() *sshclient.Client {
175 if sh.SSHActive == "" {
176 return nil
177 }
178 return sh.SSHClients[sh.SSHActive]
179}
180
181// Host returns the name we're running commands on,
182// which is empty if localhost (default).

Callers 4

CoSSHMethod · 0.95
ExecArgsMethod · 0.95
HostMethod · 0.95
HostAndDirMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected