MCPcopy Create free account
hub / github.com/DBCDK/morph / valCommand

Function valCommand

ssh/ssh.go:185–192  ·  view source on GitHub ↗
(parts []string)

Source from the content-addressed store, hash-verified

183}
184
185func valCommand(parts []string) ([]string, error) {
186
187 if len(parts) < 1 {
188 return nil, errors.New("No command specified")
189 }
190
191 return parts, nil
192}
193
194func (sshCtx *SSHContext) CmdInteractive(host Host, timeout int, parts ...string) {
195 ctx, cancel := utils.ContextWithConditionalTimeout(context.TODO(), timeout)

Callers 2

CmdContextMethod · 0.85
SudoCmdContextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected