MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / ExeSSHCommandConsole

Method ExeSSHCommandConsole

cli/pkg/common/sshremote.go:778–780  ·  view source on GitHub ↗

执行ssh command,在session模式下,standard output 只能在执行结束的时候获取到

(sshCommand string)

Source from the content-addressed store, hash-verified

776
777// 执行ssh command,在session模式下,standard output 只能在执行结束的时候获取到
778func (instance *SSHRemote) ExeSSHCommandConsole(sshCommand string) (outContent string, err error) {
779 return instance.exeSSHCommandConsole(sshCommand, false)
780}
781
782func (instance *SSHRemote) ExeSSHCommandConsoleAndEncryptedOutput(sshCommand string) (outContent string, err error) {
783 return instance.exeSSHCommandConsole(sshCommand, true)

Callers 2

ExecSSHkeyPolicyMethod · 0.95
ExeSSHCommandMethod · 0.95

Calls 1

exeSSHCommandConsoleMethod · 0.95

Tested by

no test coverage detected