MCPcopy Create free account
hub / github.com/Shopify/goose / New

Function New

shell/shell.go:21–23  ·  view source on GitHub ↗
(ctx context.Context, path string, args ...string)

Source from the content-addressed store, hash-verified

19type Env map[string]string
20
21func New(ctx context.Context, path string, args ...string) Supervisor {
22 return NewDefaultBuilder(ctx, path, args...).Prepare()
23}
24
25func NewDefaultBuilder(ctx context.Context, path string, args ...string) Builder {
26 return NewBuilder(ctx, path, args...).

Callers 9

ExampleSupervisor_WaitFunction · 0.70
TestCommandRunWaitFunction · 0.70
TestCommandRunNoWaitFunction · 0.70
TestCommandRunPipeFunction · 0.70
TestCommandStdoutPipeFunction · 0.70

Calls 2

NewDefaultBuilderFunction · 0.85
PrepareMethod · 0.65

Tested by 9

ExampleSupervisor_WaitFunction · 0.56
TestCommandRunWaitFunction · 0.56
TestCommandRunNoWaitFunction · 0.56
TestCommandRunPipeFunction · 0.56
TestCommandStdoutPipeFunction · 0.56