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

Function WithPassword

pkg/runtime/ssh_executor.go:31–35  ·  view source on GitHub ↗

WithPassword sets the identity file option for the ssh executor

(pass string)

Source from the content-addressed store, hash-verified

29
30// WithPassword sets the identity file option for the ssh executor
31func WithPassword(pass string) func(e *SSHExecutor) {
32 return func(e *SSHExecutor) {
33 e.Password = pass
34 }
35}
36
37// NewSSHExecutor creates a new executor
38func NewSSHExecutor(host string, user string, opts ...func(e *SSHExecutor)) Executor {

Callers 1

getExecutorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected