Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slipbox check: add data arg to pass data to checkers #24

Open
lggruspe opened this issue Oct 18, 2022 · 0 comments
Open

slipbox check: add data arg to pass data to checkers #24

lggruspe opened this issue Oct 18, 2022 · 0 comments
Labels
enhancement New feature or request python Pull requests that update Python code

Comments

@lggruspe
Copy link
Owner

Is your feature request related to a problem? Please describe.
Use case: passing data to a checker. For example, enabling checks only on a specific cluster of notes.

Describe the solution you'd like
Here's an example.

slipbox check --enable isolated-note,graph-cycle --data data.json

data.json contains data to pass to the checkers.

{
  "graph-cycle": {
    "tags": ["#foo", "#bar"]
  },
  "isolated-note": {
    "tags": ["#foo", "#bar"]
  }
}

Then the graph-cycle and isolated-note checks will only be applied to the notes with the specified tags.

Describe alternatives you've considered
Passing data via config file is another option.

[slipbox]
# omitted ...

[check]
graph-cycle = true
isolated-note = true

[check.graph-cycle]
tags = "#foo,#bar"

[check.isolated-note]
tags = "#foo,#bar"
@lggruspe lggruspe added enhancement New feature or request python Pull requests that update Python code labels Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

1 participant