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

Struct wrapper

shell/shell.go:41–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41type wrapper struct {
42 args []string
43 env []string
44 ctx context.Context
45 path string
46 dir string
47 cmd *exec.Cmd
48 sysProcAttr *syscall.SysProcAttr
49
50 // When a context is provided and it is canceled while the process is
51 // running, we send SIGTERM to the process. if, after this period, the
52 // process is still running, we send SIGKILL. If left unspecified, the
53 // default is 3 seconds.
54 gracefulTerminationOnCancelTimeout time.Duration
55
56 // Number of times the command was "killed" after the context was canceled.
57 killedByCancel uint32
58
59 osEnv bool
60 ctxCancellation bool
61}
62
63func (w *wrapper) StatsTags() statsd.Tags {
64 return statsd.Tags{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected