Skip to content

Commit

Permalink
chore: Update OPA jll dependency (#16)
Browse files Browse the repository at this point in the history
* chore: Update OPA jll dependency

Update OPA jll dependency to 0.69.

* rename CLI method `eval` to `evaluate`

Renamed generated CLI method `eval` to `evaluate` as overloading the `eval` method is not advisable.

* update Documenter version, remove docgen manifest
  • Loading branch information
tanmaykm authored Oct 28, 2024
1 parent 7b014b1 commit e59bc61
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 128 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "OpenPolicyAgent"
uuid = "8f257efb-743c-4ebc-8197-d291a1f743b4"
authors = ["JuliaHub Inc.", "Tanmay Mohapatra <[email protected]>"]
version = "0.3.2"
version = "0.3.3"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand All @@ -14,7 +14,7 @@ Dates = "1.6"
OpenAPI = "0.1"
TimeZones = "1"
julia = "1.6"
OpenPolicyAgent_jll = "0.61"
OpenPolicyAgent_jll = "0.69"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
119 changes: 0 additions & 119 deletions docs/Manifest.toml

This file was deleted.

2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

[compat]
Documenter = "0.27"
Documenter = "1"
2 changes: 1 addition & 1 deletion docs/src/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ OpenPolicyAgent.CLI.build
OpenPolicyAgent.CLI.check
OpenPolicyAgent.CLI.completion
OpenPolicyAgent.CLI.deps
OpenPolicyAgent.CLI.eval
OpenPolicyAgent.CLI.evaluate
OpenPolicyAgent.CLI.exec
OpenPolicyAgent.CLI.fmt
OpenPolicyAgent.CLI.inspect
Expand Down
2 changes: 1 addition & 1 deletion specs/cli/opa.json
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@
]
},
{
"name": "eval",
"name": "evaluate",
"description": "Evaluate a Rego query",
"options": [
{
Expand Down
8 changes: 4 additions & 4 deletions src/cli/cli.jl
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ function deps(ctx::CommandLine, _args...; bundle::Union{Nothing,AbstractString}
end
end

""" eval
Run the eval subcommand of opa command.
""" evaluate
Run the evaluate subcommand of opa command.
Evaluate a Rego query
Options:
Expand Down Expand Up @@ -249,9 +249,9 @@ Options:
- unknowns::AbstractString - Set paths to treat as unknown during partial evaluation
- help::Bool - Help for eval
"""
function eval(ctx::CommandLine, _args...; bundle::Union{Nothing,AbstractString} = nothing, capabilities::Union{Nothing,AbstractString} = nothing, count::Union{Nothing,AbstractString} = "1", coverage::Union{Nothing,Bool} = false, data::Union{Nothing,AbstractString} = nothing, disable_early_exit::Union{Nothing,Bool} = false, disable_indexing::Union{Nothing,Bool} = false, disable_inlining::Union{Nothing,AbstractString} = nothing, explain::Union{Nothing,AbstractString} = "off", fail::Union{Nothing,Bool} = false, fail_defined::Union{Nothing,Bool} = false, format::Union{Nothing,AbstractString} = "json", ignore::Union{Nothing,AbstractString} = nothing, _import::Union{Nothing,AbstractString} = nothing, input::Union{Nothing,AbstractString} = nothing, instrument::Union{Nothing,Bool} = false, metrics::Union{Nothing,Bool} = false, package::Union{Nothing,AbstractString} = nothing, partial::Union{Nothing,Bool} = false, pretty_limit::Union{Nothing,AbstractString} = "80", profile::Union{Nothing,Bool} = false, profile_limit::Union{Nothing,AbstractString} = "10", profile_sort::Union{Nothing,AbstractString} = nothing, schema::Union{Nothing,AbstractString} = nothing, shallow_inlining::Union{Nothing,Bool} = false, stdin::Union{Nothing,Bool} = false, stdin_input::Union{Nothing,Bool} = false, strict_builtin_errors::Union{Nothing,Bool} = false, target::Union{Nothing,AbstractString} = "rego", timeout::Union{Nothing,AbstractString} = "0s", unknowns::Union{Nothing,AbstractString} = "[input]", help::Union{Nothing,Bool} = false, )
function evaluate(ctx::CommandLine, _args...; bundle::Union{Nothing,AbstractString} = nothing, capabilities::Union{Nothing,AbstractString} = nothing, count::Union{Nothing,AbstractString} = "1", coverage::Union{Nothing,Bool} = false, data::Union{Nothing,AbstractString} = nothing, disable_early_exit::Union{Nothing,Bool} = false, disable_indexing::Union{Nothing,Bool} = false, disable_inlining::Union{Nothing,AbstractString} = nothing, explain::Union{Nothing,AbstractString} = "off", fail::Union{Nothing,Bool} = false, fail_defined::Union{Nothing,Bool} = false, format::Union{Nothing,AbstractString} = "json", ignore::Union{Nothing,AbstractString} = nothing, _import::Union{Nothing,AbstractString} = nothing, input::Union{Nothing,AbstractString} = nothing, instrument::Union{Nothing,Bool} = false, metrics::Union{Nothing,Bool} = false, package::Union{Nothing,AbstractString} = nothing, partial::Union{Nothing,Bool} = false, pretty_limit::Union{Nothing,AbstractString} = "80", profile::Union{Nothing,Bool} = false, profile_limit::Union{Nothing,AbstractString} = "10", profile_sort::Union{Nothing,AbstractString} = nothing, schema::Union{Nothing,AbstractString} = nothing, shallow_inlining::Union{Nothing,Bool} = false, stdin::Union{Nothing,Bool} = false, stdin_input::Union{Nothing,Bool} = false, strict_builtin_errors::Union{Nothing,Bool} = false, target::Union{Nothing,AbstractString} = "rego", timeout::Union{Nothing,AbstractString} = "0s", unknowns::Union{Nothing,AbstractString} = "[input]", help::Union{Nothing,Bool} = false, )
ctx.exec() do cmdstr
cmd = [cmdstr, "eval"]
cmd = [cmdstr, "evaluate"]
Base.isnothing(bundle) || Base.push!(cmd, "--bundle=$(bundle)")
Base.isnothing(capabilities) || Base.push!(cmd, "--capabilities=$(capabilities)")
Base.isnothing(count) || Base.push!(cmd, "--count=$(count)")
Expand Down

2 comments on commit e59bc61

@tanmaykm
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/118192

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.3 -m "<description of version>" e59bc6186078e95c88d9d6b995237bf6e51148d6
git push origin v0.3.3

Please sign in to comment.