Skip to content

Export list of rules as JSON #157

Description

@baruchiro

Warning

Please wait with this issue, we are discussing with our Product Manager to consider this issue.

There is an option to run 2ms rules and list all the available rules (filtered by --include-rules and other arguments).

An internal user requested an option to print the rules in JSON format to easily parse it and display it to the user.

Need to add a flag --json that will print the rules as JSON.

{
  "rule id": {
    "description": "rule description",
    "tags": ["tag1", "tag2"]
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions