| 1 | package execution |
| 2 | |
| 3 | import ( |
| 4 | "context" |
| 5 | "github.com/tomwright/dasel/v3/model" |
| 6 | ) |
| 7 | |
| 8 | // FuncIgnore is a function that ignores the value, causing it to be rejected from a branch. |
| 9 | var FuncIgnore = NewFunc( |
| 10 | "ignore", |
| 11 | func(ctx context.Context, data *model.Value, args model.Values) (*model.Value, error) { |
| 12 | data.MarkAsIgnore() |
| 13 | return data, nil |
| 14 | }, |
| 15 | ValidateArgsExactly(0), |
| 16 | ) |