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

Method Host

shell/shell.go:183–189  ·  view source on GitHub ↗

Host returns the name we're running commands on, which is empty if localhost (default).

()

Source from the content-addressed store, hash-verified

181// Host returns the name we're running commands on,
182// which is empty if localhost (default).
183func (sh *Shell) Host() string {
184 cl := sh.ActiveSSH()
185 if cl == nil {
186 return ""
187 }
188 return "@" + sh.SSHActive + ":" + cl.Host
189}
190
191// HostAndDir returns the name we're running commands on,
192// which is empty if localhost (default),

Callers

nothing calls this directly

Calls 1

ActiveSSHMethod · 0.95

Tested by

no test coverage detected