(ctx context.Context, md *moduleDef, st *ShellState, args []string)
| 419 | } |
| 420 | |
| 421 | func (h *shellCallHandler) constructorCall(ctx context.Context, md *moduleDef, st *ShellState, args []string) (*ShellState, error) { |
| 422 | fn := md.ModuleConstructor() |
| 423 | |
| 424 | values, err := h.parseArgumentValues(ctx, md, fn, args) |
| 425 | if err != nil { |
| 426 | return nil, fmt.Errorf("%q constructor: %w", md.Name, err) |
| 427 | } |
| 428 | |
| 429 | newSt := st.WithCall(fn, values) |
| 430 | |
| 431 | return &newSt, nil |
| 432 | } |
| 433 | |
| 434 | // functionCall is executed for every command that the exec handler processes |
| 435 | func (h *shellCallHandler) functionCall(ctx context.Context, st *ShellState, name string, args []string) (*ShellState, error) { |
no test coverage detected