MCPcopy Create free account
hub / github.com/commander-cli/commander / NewSSHExecutor

Function NewSSHExecutor

pkg/runtime/ssh_executor.go:38–49  ·  view source on GitHub ↗

NewSSHExecutor creates a new executor

(host string, user string, opts ...func(e *SSHExecutor))

Source from the content-addressed store, hash-verified

36
37// NewSSHExecutor creates a new executor
38func NewSSHExecutor(host string, user string, opts ...func(e *SSHExecutor)) Executor {
39 e := SSHExecutor{
40 Host: host,
41 User: user,
42 }
43
44 for _, o := range opts {
45 o(&e)
46 }
47
48 return e
49}
50
51// Execute executes a command on a remote host viá SSH
52func (e SSHExecutor) Execute(test TestCase) TestResult {

Callers 1

getExecutorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected