-
Notifications
You must be signed in to change notification settings - Fork 8
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
Compile-only CLI flag #76
Labels
Milestone
Comments
Tagging @V0ldek for notifications |
We should go ahead with a |
github-actions
bot
added
acceptance: go ahead
Reviewed, implementation can start
and removed
acceptance: triage
Waiting for owner's input
labels
Jan 23, 2023
V0ldek
added a commit
that referenced
this issue
Jan 23, 2023
Specifying `--compile` or `-c` will cause rsonpath to compile the query and output its automaton, without running the engine. This option is mutually exclusive with `--engine` or providing an input path. Related: #76
Merged
V0ldek
added a commit
that referenced
this issue
Jan 23, 2023
Specifying `--compile` or `-c` will cause rsonpath to compile the query and output its automaton, without running the engine. This option is mutually exclusive with `--engine` or providing an input path. Related: #76
V0ldek
added a commit
that referenced
this issue
Jan 23, 2023
Specifying `--compile` or `-c` will cause rsonpath to compile the query and output its automaton, without running the engine. This option is mutually exclusive with `--engine` or providing an input path. Related: #76
github-actions
bot
removed
the
acceptance: go ahead
Reviewed, implementation can start
label
Jan 23, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Is your feature request related to a problem? Please describe.
When implementing new selectors or just diagnosing bugs with a particular query, we often have to look at the compilation itself and the resulting automaton. It would be nice to have a way to run the binary only to the point of compilation, and not involve any of the engines.
Describe the solution you'd like
A new variant to the
--engine
switch sounds ideal. Example run:Describe alternatives you've considered
A dedicated flag could be used,
--compile
(short-c
). It would be mutually exclusive with-e
. Since the run would be completely different we could have the binary just output the compiled automaton to stdout in .dot format, which would make inspecting it easier.The text was updated successfully, but these errors were encountered: