MCPcopy Index your code
hub / github.com/jetify-com/devbox / Output

Method Output

nix/command.go:81–90  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

79}
80
81func (c *Cmd) Output(ctx context.Context) ([]byte, error) {
82 defer c.logRunFunc(ctx)()
83
84 start := time.Now()
85 out, err := c.initExecCommand(ctx).Output()
86 c.dur = time.Since(start)
87
88 c.err = c.error(ctx, err)
89 return out, c.err
90}
91
92func (c *Cmd) Run(ctx context.Context) error {
93 defer c.logRunFunc(ctx)()

Callers 2

InfoMethod · 0.45
SourceProfileFunction · 0.45

Calls 3

logRunFuncMethod · 0.95
initExecCommandMethod · 0.95
errorMethod · 0.95

Tested by

no test coverage detected