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

Add rule tester to CLI #35

Open
clockworksoul opened this issue Jul 2, 2021 · 0 comments
Open

Add rule tester to CLI #35

clockworksoul opened this issue Jul 2, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@clockworksoul
Copy link
Member

A rule tester would be helpful for rule development. Maybe something like:

$ gort evaluate --user admin \
  --rule 'with arg[0] == "user" must have gort:manage_users' 
  --command 'gort user list'

Could respond with something like:

{
  "result": true
}

or, alternatively:

{
  "result": false,
  "error": "failed to parse rule"
}
@clockworksoul clockworksoul added the enhancement New feature or request label Jul 2, 2021
@clockworksoul clockworksoul added this to the v0.9.0 milestone Jul 8, 2021
@clockworksoul clockworksoul modified the milestones: v0.9.0, v0.8.4 Aug 13, 2021
@clockworksoul clockworksoul removed this from the v0.8.4 milestone Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant