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

Method ExeSSHCommand

cli/pkg/common/sshremote.go:726–729  ·  view source on GitHub ↗

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

(sshCommand string)

Source from the content-addressed store, hash-verified

724
725// 执行ssh command,在session模式下,standard output 只能在执行结束的时候获取到
726func (instance *SSHRemote) ExeSSHCommand(sshCommand string) (outContent string, err error) {
727
728 return instance.ExeSSHCommandConsole(sshCommand)
729}
730
731// 复制文件
732func (instance *SSHRemote) CopyFile(localFilePath string, remoteFilepath string) error {

Callers 15

IsPortAvailableMethod · 0.95
GetRemotePwdMethod · 0.95
GetRemoteHomeMethod · 0.95
GetRemoteUserInfoMethod · 0.95
IsClonedMethod · 0.95
IsFileExistMethod · 0.95
IsDirExistMethod · 0.95
IsDirEmptyMethod · 0.95
ClearMethod · 0.95
RemoveMethod · 0.95
GetContentMethod · 0.95
CreateFileByEchoMethod · 0.95

Calls 1

ExeSSHCommandConsoleMethod · 0.95

Tested by

no test coverage detected