package formats

import "github.com/open-policy-agent/opa/cmd/formats"

Index

Constants

const (
	Pretty   option = "pretty"
	JSON     option = "json"
	GoBench  option = "gobench"
	Values   option = "values"
	Bindings option = "bindings"
	Source   option = "source"
	Raw      option = "raw"
	Discard  option = "discard"
)

Functions

func Flag

func Flag(formats ...option) *util.EnumFlag

Returns an enum flag for the given formats, where the first provided format will be used as the default format.

Source Files

formats.go

Version
v1.6.0 (latest)
Published
Jun 30, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
1 day ago

Tools for package owners.