Conversation
…dd --test flag to CLI with URL argument\n- Build rule engine from --js/--js-file/--script and evaluate GET URL\n- Exit 0 on ALLOW, 1 on DENY; print result and optional context\n- Update clap to allow --test without a command\n- Add tests for allow/deny behavior\n\nFixes #30\n\nCo-authored-by: ammario <7416144+ammario@users.noreply.github.com>
…nused imports ArgAction and spawn_blocking\n- Apply rustfmt formatting changes\n\nCo-authored-by: ammario <7416144+ammario@users.noreply.github.com>
…RL" form (two args or quoted single arg)\n- Fallback to GET when method is omitted or invalid (case-insensitive)\n- Update help text and add tests\n\nCo-authored-by: ammario <7416144+ammario@users.noreply.github.com>
…rate --test METHOD URL support\n\nCo-authored-by: ammario <7416144+ammario@users.noreply.github.com>
…ed-by: ammario <7416144+ammario@users.noreply.github.com>
…ammario <7416144+ammario@users.noreply.github.com>
Co-authored-by: ammario <7416144+ammario@users.noreply.github.com>
Co-authored-by: ammario <7416144+ammario@users.noreply.github.com>
Co-authored-by: ammario <7416144+ammario@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #30: extend
--testto supportMETHOD URLin addition toURL(defaults to GET).Changes:
--testas one or two values ([METHOD] URL)"POST https://example.com")ALLOW <METHOD> <URL>orDENY <METHOD> <URL>Examples: