(ctx context.Context)
| 702 | } |
| 703 | |
| 704 | func 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 |
no outgoing calls
no test coverage detected