Skip to content

Idea: CLI supporting raw filters json #13

@GretaCB

Description

@GretaCB

Per @springmeyer 's thoughts:

The CLI currently expects a --style flag that reads a mbgl style that is then run through /lib/styleToFilters.js

I think it would be ideal to also:

  • Have the CLI accept an option like --filters that would be the JSON schema which new shaver.Filter expects (in place of --style)
  • Have this "Filters" JSON schema clearly documented in the readme so that it is obvious how to use shaver without needing to form up a full mbgl style.

This could be useful for testing and finding lurking parsing bugs.

refs

NAN_METHOD(Filters::New) {

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