MCPcopy Create free account
hub / github.com/dirk/quickhook / NewCommand

Method NewCommand

internal/test/tempdir.go:37–41  ·  view source on GitHub ↗
(name string, arg ...string)

Source from the content-addressed store, hash-verified

35}
36
37func (tempDir *TempDir) NewCommand(name string, arg ...string) *exec.Cmd {
38 cmd := exec.Command(name, arg...)
39 cmd.Dir = tempDir.Root
40 return cmd
41}
42
43func (tempDir *TempDir) RequireExec(name string, arg ...string) {
44 cmd := tempDir.NewCommand(name, arg...)

Callers 3

RequireExecMethod · 0.95
ExecQuickhookMethod · 0.95
TestFailingHookWithPtyFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestFailingHookWithPtyFunction · 0.64