(specs []dagql.InputSpec, args map[string]dagql.Input)
| 1300 | } |
| 1301 | |
| 1302 | func orderedNamedInputs(specs []dagql.InputSpec, args map[string]dagql.Input) []dagql.NamedInput { |
| 1303 | if len(args) == 0 { |
| 1304 | return nil |
| 1305 | } |
| 1306 | |
| 1307 | inputs := make([]dagql.NamedInput, 0, len(specs)) |
| 1308 | for _, spec := range specs { |
| 1309 | arg, ok := args[spec.Name] |
| 1310 | if !ok { |
| 1311 | continue |
| 1312 | } |
| 1313 | inputs = append(inputs, dagql.NamedInput{ |
| 1314 | Name: spec.Name, |
| 1315 | Value: arg, |
| 1316 | }) |
| 1317 | } |
| 1318 | return inputs |
| 1319 | } |
| 1320 | |
| 1321 | func (obj *ModuleObject) fields(ctx context.Context) (fields []dagql.Field[*ModuleObject], err error) { |
| 1322 | for _, field := range obj.TypeDef.Fields { |
no outgoing calls
no test coverage detected