Skip to content

Feature request: output which pattern matched #384

@mhlakhani

Description

@mhlakhani

I'm using a comby template with multiple pattern in a TOML file. When I try to print matches with e.g.

comby -config ~/tmp/comby/rules.toml -f .proto -matcher .generic -json-lines -match-only | jq

I get multiple matches (as expected) but there's no easy programmatic way to see which pattern matched. Would it be possible to include that in the output?

It's not hard to work around (for my use case I can run it multiple times, one rule at a time), so this is more of a minor request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions