MCPcopy Create free account
hub / github.com/conforma/cli / ecStatusFrom

Function ecStatusFrom

acceptance/cli/cli.go:704–711  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

702}
703
704func ecStatusFrom(ctx context.Context) (*status, error) {
705 status, ok := ctx.Value(processStatusKey).(*status)
706 if !ok {
707 return nil, errors.New("can't find ec process state, did you invoke ec beforehand")
708 }
709
710 return status, nil
711}
712
713// EcStatusFrom returns the command execution status from the context
714// This is an exported wrapper for ecStatusFrom to allow access from other packages

Callers 8

theExitStatusIsFunction · 0.85
EcStatusFromFunction · 0.85
logExecutionFunction · 0.85
matchSnapshotFunction · 0.85
matchFileSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected