Files
Philip Conrad 9874953f5e cmd/parse: Move accidental pkg var to local var. (#7813)
This commit moves an accidental package-level definition of the `opa
parse` CLI subcommand to a local variable inside the `initParse`
function, similar to how we do command initialization for all other OPA
CLI subcommands.

Before this change, it was possible to see panics from the package
variable `cobra.Command` in `parse.go` having some of its flags redefined.
This fix makes it possible for `make generate-cli-docs` to run without
error again.

Signed-off-by: Philip Conrad <philip@chariot-chaser.net>
(cherry picked from commit 47e2b74dda)
2025-07-31 15:39:59 -04:00
..
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00
2024-12-12 15:27:34 +01:00
2025-07-24 11:33:23 +02:00
2024-12-12 15:09:03 +01:00
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00